Class ImageTool

java.lang.Object
com.axelor.report.tool.ImageTool

public class ImageTool extends Object
This class provides some helper methods to deal with Image in Reports
  • Constructor Details

    • ImageTool

      public ImageTool()
  • Method Details

    • getImageBytes

      public static byte[] getImageBytes(Long metaFileId)
      Get the bytes of the given MetaFile identified by the id
      Parameters:
      metaFileId - id of the MetaFile
      Returns:
      the bytes read from the file
    • getImageBytes

      public static byte[] getImageBytes(Long metaFileId, boolean cache)
      Get the bytes of the given MetaFile identified by the id
      Parameters:
      metaFileId - id of the MetaFile
      cache - whether to cache the file
      Returns:
      the bytes read from the file