I created a graphic with the following code example.
BufferedImage bi = new BufferedImage(50,50,BufferedImage.TYPE_BYTE_BINARY); Graphics2D g2d = bi.createGraphics();
At this point, I have a BufferedImage that I want to convert to IMG data URIs. Is it possible? For instance..
<IMG SRC="data:image/png;base64,[BufferedImage data here]"/>
source share