Displaying image in oracle form 6i [message #399797] |
Fri, 24 April 2009 02:34 |
ht_maya
Messages: 16 Registered: April 2009 Location: ORISSA, INDIA
|
Junior Member |
|
|
Hi,
First time, i am working with image. I have successfully stored image in oracle table. Now i want to display the stored image in oracle form 6i. There i unable to display the image although i have created the data block using the same table name as the data source. Can anybody please help in this matter?
Thanx & best regards,
M behera
|
|
|
|
|
|
Re: Displaying image in oracle form 6i [message #399851 is a reply to message #399824] |
Fri, 24 April 2009 04:53 |
ht_maya
Messages: 16 Registered: April 2009 Location: ORISSA, INDIA
|
Junior Member |
|
|
I have created a data block using the table my_docs having columns
id number,
name varchar2
doc blob.
During runtime, i am executing the form(execute_query). Data are coming for id & name field. But doc field(i.e image item) is coming as blank. Please suggest what should i do ?
Regards, M behera
|
|
|
Re: Displaying image in oracle form 6i [message #400179 is a reply to message #399824] |
Sun, 26 April 2009 23:30 |
ht_maya
Messages: 16 Registered: April 2009 Location: ORISSA, INDIA
|
Junior Member |
|
|
I have created a data block using the table my_docs having columns
id number,
name varchar2
doc blob.
During runtime, i am executing the form(execute_query). Data are coming for id & name field. But doc field(i.e image item) is coming as blank. Please suggest what should i do ?
Please help me to solve the problem.
Regards,
M behera
|
|
|
|
Re: Displaying image in oracle form 6i [message #400251 is a reply to message #400179] |
Mon, 27 April 2009 05:41 |
danish_fsd@yahoo.com
Messages: 38 Registered: February 2008 Location: Pakistan
|
Member |
|
|
Hi,
I think the problem is in your image insertion, not in retrieval. Try following query.
SELECT id, name,
dbms_lob.getlength(doc) "Photo Size"
FROM my_docs;
If 'Photo Size' column gives zero ('0') then it means image is not inserted in database.
Regards.
Danish
|
|
|
Re: Displaying image in oracle form 6i [message #400283 is a reply to message #400251] |
Mon, 27 April 2009 07:36 |
ht_maya
Messages: 16 Registered: April 2009 Location: ORISSA, INDIA
|
Junior Member |
|
|
I run the query in sql. But size is not 0.
Please see the sql editor.
(I have attached the script by which i inserted image in oracle table.
Please check it.)
SQL> ed
Wrote file afiedt.buf
1 SELECT id, substr(name,1,20),
2 dbms_lob.getlength(doc) "Photo Size"
3* FROM my_docs
SQL> /
ID SUBSTR(NAME,1,20) Photo Size
--------- -------------------- ----------
1 APPL_FORM.PDF 80836
2 CIMG1860.JPG 1191991
|
|
|
|