Home » Developer & Programmer » Forms » show image in form by Image item
show image in form by Image item [message #634511] Wed, 11 March 2015 01:40 Go to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
hi all,
I want show image in form(for background).image file in drive D on my computer.
i used this code :
Quote:
read_image_file('d:\12.jpg','jpg','image27')

but show error frm-47100 cannot read image file....
why?
Re: show image in form by Image item [message #634514 is a reply to message #634511] Wed, 11 March 2015 02:09 Go to previous messageGo to next message
Littlefoot
Messages: 21580
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Forms version?
Re: show image in form by Image item [message #634515 is a reply to message #634514] Wed, 11 March 2015 02:15 Go to previous messageGo to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
10g
Re: show image in form by Image item [message #634516 is a reply to message #634515] Wed, 11 March 2015 02:25 Go to previous messageGo to next message
Littlefoot
Messages: 21580
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
That version runs via web browser. Forms are located on the application server. Files stored on your local disk aren't available to it. Therefore, it is useless to use that image as a background.

Besides, you don't do it that way (by READ_IMAGE_FILE) - in Forms Builder, go to Edit menu - Import - Image. Resize it if needed.
Re: show image in form by Image item [message #634518 is a reply to message #634516] Wed, 11 March 2015 02:35 Go to previous messageGo to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
Thank you so much.....
Re: show image in form by Image item [message #634520 is a reply to message #634518] Wed, 11 March 2015 02:44 Go to previous messageGo to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
to STRETCH or remove it,What should be done?
It is also low image quality......
Re: show image in form by Image item [message #634521 is a reply to message #634520] Wed, 11 March 2015 02:51 Go to previous messageGo to next message
Littlefoot
Messages: 21580
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
If I were you, I'd prepare image which is already resized so that it fits the form size. Then, when it is imported, it already looks pretty (i.e. you don't have to do anything with it).

Certainly, if the original image is small and then you stretch (enlarge) it, it'll look awful, especially if you don't maintain aspect ratio.
Re: show image in form by Image item [message #634522 is a reply to message #634521] Wed, 11 March 2015 03:06 Go to previous message
hahaie
Messages: 194
Registered: May 2014
Senior Member
thanks
Previous Topic: not show the characters correctly
Next Topic: Oracle OCM Error: no ocijdbc10 in java.library.path
Goto Forum:
  


Current Time: Sat Aug 15 09:28:23 CDT 2020