ASP Classic - convert base64binary string to byte array
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 回答1: 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: Load the data with MSXML Set the node's dataType property to bin.base64 Read the binary data from the node using the