Package com.kheops.util
Class KImageConverter
java.lang.Object
com.kheops.util.KImageConverter
This converts an image file into an formated string and vice versa.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getImageBytes
(String image) Converts an image to a formated string byte array.static void
makeImageFromBytes
(byte[] image, String file) Makes an image from byte
-
Constructor Details
-
KImageConverter
public KImageConverter()
-
-
Method Details
-
getImageBytes
Converts an image to a formated string byte array.- Parameters:
image
- the file containing the image.- Returns:
- the formated string.
- Throws:
Exception
-
makeImageFromBytes
Makes an image from byte- Parameters:
image
- the image in a byte array formatfile
- the name of the file that will contained the formed image- Throws:
Exception
-