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

