E
Edwin Knoppert
I have a problem with downloading a PDF by using the response object.
A part of it:
..Response.Clear()
..Response.ContentType = sFileType
..Response.AppendHeader("Content-Disposition", "attachment; filename=" &
sFileNameOut)
..Response.AppendHeader("Content-Length", fs.Length.ToString)
..Response.AppendHeader("Content-Transfer-Encoding", "BINARY")
..Response.Flush()
And a binary data loop.
This does work fine for several purposes but for this PDF it seems to fail
but ONLY when using the OPEN button.
When i choose for save as and open it then it shows fine.
I traced the log using a filemon tool and it seems IE clears the cache and
removes the file before the Adobe reader can open it.
It's odd, my simple test app using the same code runs fine.
I can't find the problem, the PDF is downloaded fine, before i choose OPEN i
located the file in the IE download folder and tried to open it, it shows
fine.
???
A part of it:
..Response.Clear()
..Response.ContentType = sFileType
..Response.AppendHeader("Content-Disposition", "attachment; filename=" &
sFileNameOut)
..Response.AppendHeader("Content-Length", fs.Length.ToString)
..Response.AppendHeader("Content-Transfer-Encoding", "BINARY")
..Response.Flush()
And a binary data loop.
This does work fine for several purposes but for this PDF it seems to fail
but ONLY when using the OPEN button.
When i choose for save as and open it then it shows fine.
I traced the log using a filemon tool and it seems IE clears the cache and
removes the file before the Adobe reader can open it.
It's odd, my simple test app using the same code runs fine.
I can't find the problem, the PDF is downloaded fine, before i choose OPEN i
located the file in the IE download folder and tried to open it, it shows
fine.
???