You can use this base64 sample decoder and encoder to:
- Decode base64 strings (base64 string looks like
YTM0NZomIzI2OTsmIzM0NTueYQ==)
- Decode a base64 encoded file (for example ICO files or files from MIME
message)
- Convert source text data from several code pages and encode them to a
base64 string or a file
The
Form.SizeLimit is
10000000bytes. Please, do not post more data using this form.
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.