I have an application that uses the following to display a PDF document:
This works for most users, but I have a few users that report that they get a File Download dialog with the message:
"Do you want to save this file, or find a program online to open it?" It then lists
Name: Export.aspx
Type: Unknown File Type
From: myWebsiteUrl.com
Any ideas how to resolve this issue for these specific users? All are using Windows XP, Reader 7+, and IE7+
Thanks!
mwa
<><
Code:
MyFileStream = New FileStream(HttpContext.Current.Session("filePath"), FileMode.Open, FileAccess.Read, FileShare.Read)
FileSize = MyFileStream.Length
Dim Buffer(CInt(FileSize)) As Byte
MyFileStream.Read(Buffer, 0, CInt(FileSize))
MyFileStream.Close()
HttpContext.Current.Response.ContentType = "application/pdf"
HttpContext.Current.Response.OutputStream.Write(Buffer, 0, FileSize)
HttpContext.Current.Response.Flush()
HttpContext.Current.Response.Close()
This works for most users, but I have a few users that report that they get a File Download dialog with the message:
"Do you want to save this file, or find a program online to open it?" It then lists
Name: Export.aspx
Type: Unknown File Type
From: myWebsiteUrl.com
Any ideas how to resolve this issue for these specific users? All are using Windows XP, Reader 7+, and IE7+
Thanks!
mwa
<><