Skip to main content

system.kanoa.cmms.getImage(chkImageId)

Retrieves the full-resolution image file associated with a given CMMS image record. Given a chkImageId, the function looks up the stored image and returns its raw binary contents as a byte array, which can then be written to disk, streamed to a client, or bound directly to an Image component on a Perspective or Vision screen. Use this function when you need the complete, original-quality image rather than a lightweight preview (see getImageThumbnail for that case).


Parameters

chkImageId Integer: Id of image


Returns

image byteArray


Example

chkImageId = 42
imageBytes = system.kanoa.cmms.getImage(chkImageId)