Change character set

Client browser handles the data from the source form as a string data encoded by document charset (iso-8859-1 in the case of this document) and sends the data as a binary http stream to a web server. You can choose another character set for the conversion of the source text data (the textarea). This script does Base64 conversion with the converted binary data.

Base64 programming

This online sample demonstrates functionality of
a base64 property,
ByteArray class
and Huge asp file upload.
You can convert texts using several code pages (using CharSet property) from Unicode string to byte array and then convert the binary data to a Base64 string.
The sample uses a special Base64 algorithm written for the ByteArray class. The Base64 conversion algorithm is written in C++ and works with binary (VT_ARRAY | VT_UI1) and String (BSTR) OLE data. It contains hi-speed and low-memory consumption BSTR->BSTR, BSTR->BINARY, BINARY->BSTR and BSTR->BSTR algorithms. Source code of the coding algorithm is available within distribution license of a ScriptUtilities library.
The ByteArray class was primarily designed
to work with ASP and VBScript, but you can use it with any other language working with COM (ActiveX, OLE) objects,
such is VBA (VBA5, VBA6, Word, Excel, MS Access), VBScript and JScript in windows scripting host
(.wsh, .chm or .hta applications, Outlook or echange server-side scripts), VB.Net, C# or j# in ASP.Net and others.