public class ImageUtils
extends java.lang.Object
Constructor and Description |
---|
ImageUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
base64ToImage(java.lang.String base64)
Convert a base64 String to an image.
|
static java.lang.String |
imageTobase64(java.awt.image.BufferedImage image,
java.lang.String type)
Convert an image to a base64 String.
|
public static java.awt.image.BufferedImage base64ToImage(java.lang.String base64) throws java.io.IOException
base64
- the base64 Stringjava.io.IOException
- if the conversion could not be performedpublic static java.lang.String imageTobase64(java.awt.image.BufferedImage image, java.lang.String type) throws java.io.IOException
image
- the imagejava.io.IOException
- if the conversion could not be performedCopyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence