Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADODB.Stream
Message
From
21/01/2004 12:14:27
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
 
 
To
All
General information
Forum:
Internet
Category:
Active Server Page
Title:
ADODB.Stream
Miscellaneous
Thread ID:
00869093
Message ID:
00869093
Views:
60
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
Map
View

Click here to load this message in the networking platform