I need to convert an image object to a base64 object so that I can load it into a tag on my client side.
However, I cannot figure out how to do this. Does anyone have a code for this that I could easily use?
This is what I use to turn an external image link into an image object
Image image = null; URL url = new URL(request.getParameter("hdn_path")); image = ImageIO.read(url);
Not sure if I will do it right.
source share