I’m currently struggling to find the proper way to convert a large file (~50-100mb) to a Base64 string. I currently have:
// Get the file from the temp directory const File largeFile (File::getSpecialLocation (File::tempDirectory) .getChildFile ("AudioRecording.wav")); // send input stream to Base64::toBase64 String b64 = Base64::toBase64(largeFile.createInputStream(), largeFile.getSize());
However this is writing each chunk of the stream into
b64 resulting in a lot of repeated data What would be the proper way to handle this flow?