Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADODB.Stream
Message
De
21/01/2004 12:14:27
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Titre:
ADODB.Stream
Divers
Thread ID:
00869093
Message ID:
00869093
Vues:
58
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
Fil
Voir

Click here to load this message in the networking platform