Upload Image Fails w 4.0.0

Hello. Our host has Sun ONE ASP 4.0.0 installed. I have code that I use all the time to allow users to upload images to the website. Code works on all Windows machines, but craps out on the linux system running Sun ONE ASP. Craps out with the following message.

Sun ONE ASP VBScript runtime (0x800A4001)

Function or method call not implemented: 'ChrB'

inc_upload.asp, line 37

Function getByteString(StringStr)

For i = 1 To Len(StringStr)

char = Mid(StringStr, i, 1)

getByteString = getByteString & chrB(AscB(char))

Next

End Function

WHERE getByteString = getByteString & chrB(char)) is line 37.

Error is followed by this:

POST Data:

Request object error 'ASP 0207 : 80004005'

Cannot use Request.Form

/asp/upload.asp, line 183

Cannot use Request.Form collection after calling BinaryRead.

Which is odd because there is no line 183 in upload.asp. There are only 75.

I tried not to get too long winded, but anybody know what might cause this in ASP One? Let me know if you need more infor and/or the full files that cause the error.

Thanks,

RJ

Database Whiz Consulting

Las Vegas, NV 89120

[1239 byte] By [dbwhiz] at [2007-11-26 8:48:52]
# 1
As far as I know chrb is not supported (and I believe its in the read me or release notes) in 4.0.0 or 4.0.1It appears to be supported in 4.0.2 from what I can test.Duncan
Duncan_Berriman at 2007-7-6 22:37:48 > top of Java-index,Web & Directory Servers,Web Servers...