Base64 encode and decode


#1

I need to generate some data URLs (https://en.wikipedia.org/wiki/Data_URI_scheme) within my JUCE application, which requires base64 encoding.

Grep'ing through the code, I see things like MemoryBlock::toBase64Encoding() but from old posts on the forum it seems this is a JUCE-specific base64 encoding which is different from the "traditional" (?) base64 scheme.  Is this still the case?


#2

Yes - I actually have a proper base-64 encoding algorithm which we'll publish when we get chance..


#3

Thanks for the reply, Jules.

In the meantime, anyone else in my situation that needs base64 encoding/decoding, here are two I found tonight where the license permits inclusion into any codebase:

https://github.com/superwills/NibbleAndAHalf

http://www.adp-gmbh.ch/cpp/common/base64.html

Stéphane


#4

This would be handy for me at the moment, is this due to make it into the JUCE codebase anytime soon? 

Thanks