
August 3rd, 2004, 06:34 AM
|
|
Contributing User
|
|
Join Date: Jul 2004
Posts: 55

Time spent in forums: 9 h 23 m 14 sec
Reputation Power: 0
|
|
|
String to Byte Array
k, here's the problem. I get a binary-converted-to-string from another ASP and need to store it in MS Access. Since this string is too big to store as 'text' in MS Access, the only solution I came up with (No, I cannot change my DB), is to convert the string to an array of bytes and store it as an image and as an OLE data item in Access (Is this a good solution?)
With my current solutino, I have problems converting the string to byte array. The following piece of code doesn't seem to work -
Code:
rawdata = Request.Form("rawdata")
Dim arrayBytes() as Byte
arrayBytes = System.Convert.FromBase64String(rawdata)
I get the error -
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/E3/sign_test.asp, line 6, column 17
Dim arrayBytes() as Byte
----------------^
Any ideas??
|