Display Images using READ_IMAGE_FILE in 10g forms
571725Oct 5 2009 — edited Oct 7 2009Hello all, i have a simple question that I'm trying to resolve really quick.
I've created a field on a form in 10g forms that is of IMAGE type. I've given it a name and has given it a FILE_TYPE of GIF.
I've put some code in a POST-QUERY trigger of a block that calls the READ_IMAGE_FILE command, where I enter the filename, file_type, and block.item name. When I leave the path off the image name, forms runtime acts like it cannot find it. I get an FRM message displayed at runtime that says it "Cannot read image file". However, if I put the full path (like something pointing to a hard-coded directory on my C drive where the image file resides), the image displays fine at runtime.
I added the images to my JAR file where I have other images stored so they get opened at runtime under the ORACLE_HOME/forms/java directory. I was thinking that when I gave the filename, runtime would know to pull it out of there. But obviously, that's not what is happening.
Has anyone got ideas on what I could do to get the READ_IMAGE_FILE to display the image without hard-coding a path in?
Any help is appreciated!
Regards,
Chris