General information
Category:
Active Server Page
Dear Friends,
I've a asp file that makes download of a file using ADODB.Stream and Response.BinaryWrite, my trouble is that file size is more than ~700KB and when i do the download the file has only 353 bytes, i did a download using a ftp client to see the file size and this file really has more than ~700KB.
Bellow is the piece of my code:
strFilePath = "../file.zip"
'response.write strFilePath
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath
Response.BinaryWrite objStream.Read
Response.Flush
objStream.Close
Set objStream = Nothing
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only