Decoding base64 encoded binary data
Base64 is a method to encode binary data by converting groups of bytes into groups of base64 numbers. The goal is to avoid data loss by safely representing binary data using only printable characters which will not be interpreted in a special way.
HTML5 has much better support for binary data, it can be stored and manipulated using the
ArrayBuffer class and the typed array classes. However, legacy libraries and API may still use base64 data. In order to do more efficient ...