M
MichiMichi
I am trying to secure filedownload via streaming to protect files on
the server. This works very well but when I open the file in a notepad
editor it shows always HTML code at the end of the file.
Since the code runs in a aspx file, the added HTML Code always
streamed at the end.
What do I have to do so the files are stored without the HTML tags on
the client machine?
Here is the code:
..............
Response.Clear()
Response.ClearContent()
Response.ClearHeaders()
Response.AppendHeader("content-disposition", "attachment;
filename=" & strFilename)
Response.ContentType = strContentType
Response.BufferOutput = True
Response.BinaryWrite(bytFile)
..........
the server. This works very well but when I open the file in a notepad
editor it shows always HTML code at the end of the file.
Since the code runs in a aspx file, the added HTML Code always
streamed at the end.
What do I have to do so the files are stored without the HTML tags on
the client machine?
Here is the code:
..............
Response.Clear()
Response.ClearContent()
Response.ClearHeaders()
Response.AppendHeader("content-disposition", "attachment;
filename=" & strFilename)
Response.ContentType = strContentType
Response.BufferOutput = True
Response.BinaryWrite(bytFile)
..........