Home > front end >  ASP file download BinaryWrite problem
ASP file download BinaryWrite problem

Time:10-02

First ASP whether download only Response.
BinaryWrite wayUsing the method of document flow output download, always will be downloaded to a half speed never
O download optimization function

CodePudding user response:

It depends on how to download the file, download to a half speed, made a mistake in your file reading process, I used from inside the dBase database files do:
 var Cursor=0, ReadSize=1024 * 512; 
Var FileSize=rs (" DaXiao "). The Value 0;
If (isNaN (FileSize)) FileSize=0;
While (Cursor & lt; The FileSize)
{
Cursor +=ReadSize;
If (Cursor & gt; ReadSize FileSize)=FileSize + ReadSize - Cursor;
Response. BinaryWrite (rs (" ShuJu "). GetChunk (ReadSize));
}

CodePudding user response:

Things really others used asp so old?

CodePudding user response:

refer to the second floor rumlee response:
things really others used asp so old?

There is someone with no surprise, and people are learning is one of the more surprised
  •  Tags:  
  • ASP
  • Related