public final class ImageHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
decodeBase64(String encoded)
Decodes the given base64 characters into an image.
|
static String |
decodeBase64AndSaveAsPng(String encoded,
String path)
Decodes the given base64 characters into an image, and saves the decoded image as a file using the given path.
|
static String |
encodeBase64(BufferedImage image)
Encodes the given image using the base64 algorithm.
|
public static String encodeBase64(BufferedImage image)
image - the image to encode.public static BufferedImage decodeBase64(String encoded)
encoded - the given base64 characters.public static String decodeBase64AndSaveAsPng(String encoded, String path)
encoded - the given base64 characters.path - the path where to save the image file.String. This method is used by this extensions XSL stylesheets to decode the image in
the XML report.Copyright © 2014-2015 AssertJ. All Rights Reserved.