Class KImageConverter

java.lang.Object
com.kheops.util.KImageConverter

public class KImageConverter extends Object
This converts an image file into an formated string and vice versa.
  • Constructor Details

    • KImageConverter

      public KImageConverter()
  • Method Details

    • getImageBytes

      public static String getImageBytes(String image) throws Exception
      Converts an image to a formated string byte array.
      Parameters:
      image - the file containing the image.
      Returns:
      the formated string.
      Throws:
      Exception
    • makeImageFromBytes

      public static void makeImageFromBytes(byte[] image, String file) throws Exception
      Makes an image from byte
      Parameters:
      image - the image in a byte array format
      file - the name of the file that will contained the formed image
      Throws:
      Exception