Hi All,
I am trying to convert an ASP upload script from VBScript to javascript:
http://www.freeaspupload.net/
I am stuck on this function:
//String to byte string conversion
function byte2String(sString)
{
var result = new String();
for (var index = 0; index < sString.length; index ++)
{
result += ChrB(AscB(Mid(sString,i,1)));
} // end for
return result;
} // end function
Obviously the line I am stuck on is:
result += ChrB(AscB(Mid(sString,i,1)));
Are there any IIS JavaScript equivalents for ChrB and AscB?
Any help would be most appreciated!
Rob
:)