Let’s say I am storing an audio file in the database and later on I would want to use that BLOB or binary in my application.
<audio src ="${sessionScope.user.music}">
Where ${sessionScope.user.music} returns a binary data that has been retrieve from the database.
would it be possible to load an audio file in an audio tag, using binary data instead of a uri? or path?
A bit like inline images:
Where this works for
<img>, I am far from sure thatdata:audio/mp3;base64, ...(oraudio/ogg) would work. It is not in my HTML5 reference.For the encoding, see JEditorPane with inline Image.