Generates a package-specific image via ObjImage and renders it as a Base64-encoded inline <img> tag.
IMAGEGEN — set as ReportType in def_report.
def Render(self, Param1: str = "", Param2: str = "", Param3: str = "") -> str:
Param1 is the image code (e.g. "loyalty"), identifying which ObjImage definition to use. Param2 is the key code identifying the specific entity to generate the image for (must be at least 4 characters). Returns an HTML string with the Base64-encoded image, or False if the key code is too short.
Images are generated into {LOCAL_DOCUMENTS}/{image_code}/package.{package}/ and named {key_code}_{image_code}.{format}. Any existing file at that path is deleted before generation. The image is read back and embedded as data:image/jpeg;base64,.... Requires ObjImage and ObjConstants.LOCAL_DOCUMENTS.