Information générale
Catégorie:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement