public class ImageUtil extends Object
| Constructor and Description |
|---|
ImageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static CharSequence |
createBase64EncodedImage(PackageResourceReference imageReference,
boolean removeWhitespaces)
Creates a base64 encoded image string based on the given image reference
|
public static CharSequence createBase64EncodedImage(PackageResourceReference imageReference, boolean removeWhitespaces) throws ResourceStreamNotFoundException, IOException
imageReference - the image reference to create the base64 encoded image string ofremoveWhitespaces - if whitespaces should be removed from the outputResourceStreamNotFoundException - if the resource couldn't be foundIOException - if the stream couldn't be readCopyright © 2006–2021 Apache Software Foundation. All rights reserved.