Package org.apache.wicket.util.image
Class ImageUtil
- java.lang.Object
-
- org.apache.wicket.util.image.ImageUtil
-
-
Constructor Summary
Constructors Constructor Description ImageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharSequence
createBase64EncodedImage(PackageResourceReference imageReference, boolean removeWhitespaces)
Creates a base64 encoded image string based on the given image reference
-
-
-
Constructor Detail
-
ImageUtil
public ImageUtil()
-
-
Method Detail
-
createBase64EncodedImage
public static CharSequence createBase64EncodedImage(PackageResourceReference imageReference, boolean removeWhitespaces) throws ResourceStreamNotFoundException, IOException
Creates a base64 encoded image string based on the given image reference- Parameters:
imageReference
- the image reference to create the base64 encoded image string ofremoveWhitespaces
- if whitespaces should be removed from the output- Returns:
- the base64 encoded image string
- Throws:
ResourceStreamNotFoundException
- if the resource couldn't be foundIOException
- if the stream couldn't be read
-
-