Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert a BinaryRead to ASCII Characters (need speed)

Status
Not open for further replies.

wanttoscript

IS-IT--Management
Oct 25, 2002
9
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top