Adodb.Stream - Problem download big files

This is a discussion on Adodb.Stream - Problem download big files within the Inetserver forums in Microsoft Tools category; Mister, any solution about it ?? any sample code that works fine ?? please thanks in advance... -- http://www.alhambra-eidos.es/web2005/index.html www.kiquenet.net http://www.setbb.com/putainformatica...opic.php?p=843 www.trabajobasura.com/solusoft "Juan" wrote: > Hi! > > > I want to use ASP to download big files using ADODB.STREAM. It works very > fine with files smaller than 80 MB. > On the Webserver I can see that memory allocation and the process w3wp is > running. After some time (more or less 2 minutes) I get a response timeout. > > Here is the code: > > Server.ScriptTimeout = 30000 > Response.Buffer = True > > Response.Clear > ...

Go Back   Application Development Forum > Microsoft Tools > Inetserver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 07-08-2008, 09:04 AM
Alhambra Eidos Kiquenet
Guest
 
Default RE: Adodb.Stream - Problem download big files

Mister, any solution about it ??

any sample code that works fine ?? please

thanks in advance...

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft



"Juan" wrote:

> Hi!
>
>
> I want to use ASP to download big files using ADODB.STREAM. It works very
> fine with files smaller than 80 MB.
> On the Webserver I can see that memory allocation and the process w3wp is
> running. After some time (more or less 2 minutes) I get a response timeout.
>
> Here is the code:
>
> Server.ScriptTimeout = 30000
> Response.Buffer = True
>
> Response.Clear
> Response.Expires = 0
> Response.ContentType = "Download-File"
> Response.AddHeader "Content-Disposition","attachment; filename=" & sfile
>
> Set oStream = Server.CreateObject("ADODB.Stream")
> oStream.Type = adTypeBinary
> oStream.Open
> oStream.LoadFromFile(sfile)
> Response.AddHeader "Content-Length", oStream.Size ' -- Schönheit
> Response.CharSet = "UTF-8"
>
> For i = 0 To oStream.Size
> i = i + 128000
> Response.BinaryWrite(oStream.Read(128000))
> Response.Flush
>
> Next
>
> oStream.Close
> Set oStream = Nothing
> Response.Flush
> Response.End
>
> Do I have to change something in my code - or perhaps a general setting in
> IIS / the metabase?
>
> Many thanks in advance
>
>
>
> Juan

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:45 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.