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: