Package com.axelor.report.tool
Class ImageTool
java.lang.Object
com.axelor.report.tool.ImageTool
This class provides some helper methods to deal with Image in Reports
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getImageBytes
(Long metaFileId) Get the bytes of the given MetaFile identified by the idstatic byte[]
getImageBytes
(Long metaFileId, boolean cache) Get the bytes of the given MetaFile identified by the id
-
Constructor Details
-
ImageTool
public ImageTool()
-
-
Method Details
-
getImageBytes
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
Get the bytes of the given MetaFile identified by the id- Parameters:
metaFileId
- id of the MetaFilecache
- whether to cache the file- Returns:
- the bytes read from the file
-