system.kanoa.cmms.processImage(filePath, procedureStepCheckId, chkImageId, imageName, imageType, imageDescription, userId)
Given a filepath, this function will convert the image found to a jpg, create a thumbnail and store it in the database
Parameters
filePath String: Path to the image file
procedureStepCheckId Integer: Id of check item. Can be None
chkImageId Integer: Id of image. Can be None for a new image
imageName String: Name for the image
imageType String: Type of the image. Can be user defined.
imageDescription String: Description of the image
userId Integer:Id of the user executing the function
Returns
imageId Integer
message String None if success
Example