Believe in yourself, and remember that anything is possible. Believe in what makes you feel good. Believe in what makes you happy. Believe in the dreams you have always wanted to come true.
Posted by: Edi Yanto on: May 21, 2009
BLOB is “a collection of binary data stored as a single entity in a database management system. Blobs are typically images, audio or other multimedia objects, though sometimes binary code is stored as a blob. Database support for blobs is not universal.” (wikipedia)
Support for extracting BLOB images to XML is coming, the XMLP extraction engine will extract the images and encode to base64 in the XML, you will then be able to pull this into the output via the RTF template.
Following are something that you should know:
Notice the template needs to know the mime type of the image, in this case “image/jpg” The IMAGE_ contains the base64 encoded image data. Template and sample data here
Edi, the concurrent process ends in a warning now:
Calling XDO Data Engine…
[062109_015329488][][EXCEPTION] java.sql.SQLException: Stream has already been closed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBDataSetImpl.getStreamItem(DBDataSetImpl.java:1598)
at oracle.jdbc.driver.OracleStatement.getBytesInternal(OracleStatement.java:3555)
at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java:3808)
Hi,
My template is Acrobat(PDF) and not RTF. How do I code in Acrobat so that it recognises the image. I understand that if its RTF then the code is
Is there something for Acrobat? Please let me know.
Thanks
Kavitha
Hi, I’m using Oracle EBS R12. We have documents uploaded from users and stored in the database as BLOBS. These documents will be MS Word documents or PDFs.
You mentioned previously that only jpg, gif and png are supported?
Is it possible to display a pdf or ms word document in a BI P RTF template report?
I’ve tried and set the following:
It doesn’t work. I also tried changing the content-type=”image/jpg” and it also doens’t work.
When I run the template in MS Word I just get a blank field where the blob should appear.
Any help much appreciated.
Thanks,
Mark.
Hi Edi,
First I want to thank you for this guidance. I was looking solution for this problem over 20 days….. Thank you for cut my pains
Now, I have another problem!
I have over 10,000 blob pictures in table. Thay all visible and ok. Most of them I show in output document(rtf template) with success, but some of them show as blank (no image) and some blob(clob) do not execute at all (request execute with warnings, and can not show document).
All images are same size (900px*1200px) and format(jpg).
What is happening? Why for some picture this work and for another don’t?
Thanks,
Miroslav (Miki)
P.S. Sorry if my English is bad
You are right, there is difference in size of those images (same resolution but diferent size). Problematic image are over 3MB.
UHHHHH…… It’s long story….. Small number of images was load from form (HRMS Menager). Those images have normal size (about 100K) and i can view them in rtf template.
9000 images I was migrate in table direct with my own code. This was start of HRMS project when we had to migrate all data. All images in this table are LONG RAW. I was convert LONG RAW in BLOB, BLOB in CLOB, CLOB in image document with your help.
All input images are JPG, same resolution and size about 100K.
This “my own code” is writen in Oracle Forms Bilder 10.
I used Base Data Block to insert new record with code
READ_IMAGE_FILE(path, ‘JPG’, ‘PER_IMAGES.IMAGE’);
What to do with this big images?
Have you any suggestion?
Thanks,
Miki
Edi,
All images are 900 x 1200 and have size about 100K.
When I insert those images in table with
READ_IMAGE_FILE(path, ‘JPG’, ‘PER_IMAGES.IMAGE’);
take 3MB or more….
For example: image1.jpg, 900 x 1200, 120 KB
when I insert this image i table (LONG RAW)
it’s 900×1200 and have 3,5 MB
THAT IS MY PROBLEM. I suppose that missing something in code
READ_IMAGE_FILE(path, ‘JPG’, ‘PER_IMAGES.IMAGE’); and I don’t know what….
Thanks Edi
I’m sorry if I bother you
Edi,
Same thing happened when I changed the data type in table!
Is there any chance to ‘resize’ (convert) existing blob images?
Thanks,
Miki
June 20, 2009 at 4:46 pm
hi Edi,
i have xml pub ver 5.6.3 on my end. trying to get a dynamic image to show in the rdf and used the xml code you had given above in the field in the RDF document. I am using a data template and have done the template and data defninitions and connected all those pieces together. if i remove the image field from the RDF, it works fine. but if i add it in i get this error:
java.sql.SQLException: No corresponding LOB data found :
in the log of the concurrent process. what could be wrong?
please help!
Sheena