public class DataUriGenerator extends Object
| Constructor and Description |
|---|
DataUriGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateDataURI(InputStream inputStream,
String fileName)
Generate the dataUri as string associated to the passed InputStream with encoding & type based on provided
fileName.
|
static boolean |
isDataUri(String url)
Check if the url is actually a dataUri (base64 encoded value).
|
public String generateDataURI(InputStream inputStream, String fileName) throws IOException
IOExceptionpublic static boolean isDataUri(String url)
url - to checkCopyright © 2008-2014. All Rights Reserved.