Home » Developer & Programmer » Forms » open pdf file thru oracle forms developer 9i and extract blob from DB thru forms (windows xp)
open pdf file thru oracle forms developer 9i and extract blob from DB thru forms [message #460678] Mon, 14 June 2010 02:21 Go to next message
sunayani
Messages: 1
Registered: June 2010
Junior Member
Sir,
I have a table in oracle image_table_2
IMAGE_ID NUMBER(38)
FILE_NAME VARCHAR2(100)
IMAGE_DATA BLOB
Through sqlldr I have loaded following data
1,x.pdf, c:\x.pdf
2,y.pdf, c:\y.pdf
When i give command at sql
sql> select image_id, file_name, DBMS_LOB.GETLENGTH(image_data)
from image_table_2
it gives
1 52283
2 310300
It does not show the filename. has data been loaded properly?

My second question is how to open the blob field in Forms? I am using Oracle 10g. I have gone thru so many URLs for that but didn't get a perfect answer.
I just developed a simple form for that. For the blob field what should be defined in the property?
Item Type Image
Image Format - what should be there . pdf is not there
Pl help me out.Kindly help me with the code. do not give any solution like bfile or something as we are not so conversant with that.

Thanks in advance
Re: extract blob from DB thru forms [message #463955 is a reply to message #460678] Mon, 05 July 2010 07:17 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Search this forum for 'DBMS_LOB'. There are numerous threads.

David
Re: open pdf file thru oracle forms developer 9i [message #464263 is a reply to message #460678] Wed, 07 July 2010 03:04 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Searching forum for 'store pdf' returned http://www.orafaq.com/forum/m/448468/67467/?srch=store+pdf#msg_448468 and http://www.orafaq.com/forum/m/438726/67467/?srch=store+pdf#msg_438726 and the summary in http://www.orafaq.com/forum/m/384626/67467/?srch=store+pdf#msg_384626

David
Previous Topic: Trigger execution order
Next Topic: frm-40735: on error trigger raised unhandled exception ora-03114
Goto Forum:
  


Current Time: Fri Sep 20 09:47:28 CDT 2024