This example fetches/Downloads Image from URL, Converts InputStream object into ByteArrayOutputStream, finally does base64 encoding on byte array. Save this in Html file as <img src='data:image/jpg:base64,... Convert an Image to base64 string in java | Convert InputStream to ByteA...
Comments
Post a Comment