D
David Union
I am doing very simple code...
in the middle of an http request, i set a filename (with path)
and do a Response.WriteFile(filenamewithpath)
then Response.End().
I have tried Response.Clear() and .Flush() ahead of time.
I have tried various permutations (all, I think) of Content-Type
and Content-Disposition.
I have also tried opening a file stream and copying the data
to an array of bytes (the data is good in the array) and then
doing a Response.BinaryWrite(binaryarray)
then Response.End().
I've also tried Response.Close().
In all cases I get an extra byte at the end of the file,
so the CRC doesn't match up.
Anyone know the solution for this?
Windows 2000 Server, Visual Studio 2003
with the appropriate and updated framework.
This is in Visual Basic in the code-behind page.
Thanks,
DU
in the middle of an http request, i set a filename (with path)
and do a Response.WriteFile(filenamewithpath)
then Response.End().
I have tried Response.Clear() and .Flush() ahead of time.
I have tried various permutations (all, I think) of Content-Type
and Content-Disposition.
I have also tried opening a file stream and copying the data
to an array of bytes (the data is good in the array) and then
doing a Response.BinaryWrite(binaryarray)
then Response.End().
I've also tried Response.Close().
In all cases I get an extra byte at the end of the file,
so the CRC doesn't match up.
Anyone know the solution for this?
Windows 2000 Server, Visual Studio 2003
with the appropriate and updated framework.
This is in Visual Basic in the code-behind page.
Thanks,
DU