I am trying to convert a base64binary string to a byte array in classic ASP. StrConv() doesn’t exist in ASP.
My objective is to take the base64binary string received from a web service call, and write the binary format to a file.
thanks,
-m
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When faced with a similar situation some time ago, I used MSXML to convert the data to a byte array before saving it to a file. You will need version 3 or higher.
To do this you would:
dataTypeproperty tobin.base64nodeTypedValuepropertyA few links on how the to this are below.
http://ghads.wordpress.com/2008/10/17/vbscript-readwrite-binary-encodedecode-base64/
http://support.microsoft.com/kb/254388
http://www.motobit.com/tips/detpg_binasp/