Languages
[Edit]
EN

JavaScript - decode base64 to text using stream

18 points
Created by:
Creg
9600

In this short article, we would like to show how in JavaScript, decode base64 to text using a simple stream logic.

Decoding in-stream is useful when we have a big amount of data that should be decoded (in some parts) reducing memory usage that is needed when atob() is called with big base64 code as an argument.

Stream is useful when we transmit real-time produced data and we don't know the final length.

Practical example:

See also

Edit
  1. JavaScript - encode text to base64 using stream
  2. JavaScript - Base64 encode and decode

  3. JavaScript - base64 with Unicode support

Alternative titles

  1. JavaScript - decode base 64 to text using stream
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join