wanttoscript
IS-IT--Management
I am improvising a "file upload" in VBScript, and have succeeded, except in the matter of performance!
I need to convert the binary data returned by the BinaryRead method to ASCII, and do it like this:
postData = ""
Dim biData
biData = Request.BinaryRead(Request.TotalBytes)
for nIndex = 1 to LenB( biData)
postData = postData & Chr(AscB(MidB( biData, Index, 1)))
next
Unfortunately this is very slow for files >100K.
Does anyone have a nifty idea for doing this quicker?
All advice will be most graciously accepted.
I need to convert the binary data returned by the BinaryRead method to ASCII, and do it like this:
postData = ""
Dim biData
biData = Request.BinaryRead(Request.TotalBytes)
for nIndex = 1 to LenB( biData)
postData = postData & Chr(AscB(MidB( biData, Index, 1)))
next
Unfortunately this is very slow for files >100K.
Does anyone have a nifty idea for doing this quicker?
All advice will be most graciously accepted.