Getting Base64 into an AudioBuffer

Hello.

I couldn’t see an go-to method for doing this. Is this the way to do it?

   auto buffer = juce::AudioBuffer<float>();
    juce::MemoryOutputStream decodedStream;
    juce::Base64::convertFromBase64 (decodedStream, base64Data);
    auto reader = formatManager.createReaderFor(new juce::MemoryInputStream(decodedStream.getData(), decodedStream.getDataSize(), false));

Should I be serving just the Base64 data , or is it better to pass a URI encoded string, with MIME type then the data?