Home » Developer & Programmer » Forms » Read_Image_File (Form6)
Read_Image_File [message #380856] Tue, 13 January 2009 10:40 Go to next message
mkhalil
Messages: 108
Registered: July 2006
Location: NWFP Peshawar Pakistan
Senior Member
Dear Fellow,
I have written the following code in When_New_Form_Instance Trigger.
begin
	read_image_file('c:\hms\images\home.PNG','PNG','toolbar_butt.rooms');
end;

But when I execute the form i receive the following message.
can not read image file c:\hms\images\home.PNG

Whereas the the image file exists in the folder.
Would you please help me where am i taking mistake.
Re: Read_Image_File [message #380871 is a reply to message #380856] Tue, 13 January 2009 11:39 Go to previous messageGo to next message
Abdul Qadeer
Messages: 6
Registered: August 2007
Location: Peshawar
Junior Member
Hello!
Please change the format of the picture from 'PNG' to 'GIF'
then check and let us know then.
Re: Read_Image_File [message #380941 is a reply to message #380871] Wed, 14 January 2009 03:35 Go to previous messageGo to next message
mkhalil
Messages: 108
Registered: July 2006
Location: NWFP Peshawar Pakistan
Senior Member
I already tried TIF file also but the result is same.
Re: Read_Image_File [message #381024 is a reply to message #380941] Wed, 14 January 2009 22:33 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Please reread the reference manual: the valid image file types are BMP, CALS, GIF, JFIF, JPG, PICT, RAS, TIFF, or TPIC. I do not see either 'png' or 'tif' in this list.

Are you sure that you have the case of the name correct?

Also try running this code from a button and see if that makes a difference.

David
Previous Topic: counting number of rows retrieved by query
Next Topic: java bean problem
Goto Forum:
  


Current Time: Sun Dec 04 23:05:54 CST 2016

Total time taken to generate the page: 0.08022 seconds