Reputation: 123
Images can be used inline in websites using <img src=”data:<MIMETYPE>;base64,<BASE64_ENCODED_IMAGE>”>
<img src=”data:<MIMETYPE>;base64,<BASE64_ENCODED_IMAGE>”>
Does this also work for audio files (e.g. mp3)?
Upvotes: 2
Views: 1013
Reputation: 531
Short answer yes
long answer
convert your audio file into base64 using either online or other form of tools
ex: src="src="data:audio/ogg;base64,......." />
src="src="data:audio/ogg;base64,......." />
here is a live link
Upvotes: 3