I have the need to encode a file as a data URI in Java, is it possible for me to retrieve this in the following format?
data:application/octet-stream;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA==
I've been looking for something like it, but had no luck so far.