Two days wrote the server-side download file to the client's example, there is a friend to send an email and say that I want to discuss the efficiency of the upload file. Here is a point of view, friends can use MSN: Johntan2212@hotmail.com or Visite
Http://www.photk.com I gain contact. Thank you
Use FormSize = Request.TotalBytes
Formdata = Request.binaryRead (Formsize)
After obtaining the contents of the file, if you are eager to obtain the character form of the file, use ST = f_bin2str (Formdata)
Then processes the ST file, and the efficiency is low. Analyze some of the foreign business components, they all use the method of reading the file, so the processing efficiency is very high. Most of the circulation
While Startline Wend In the middle, the binary row is extracted, and then character conversion is performed. LINELENGTH = INSTRB (StartLine, Formdata, Clstr) -startline LINESTRB = MIDB (Formdata, Startline, LineLength) The change is not large, but the efficiency is doubled. Due to the experiment, the same file, the speed of reading the processing. . It took 15 minutes; while the edge of reading is only for a few seconds. The efficiency difference is also displayed. Here is only the methods I think, if the prawn has a more high way, welcome to enlighten me.