Solved

Oracle Report Builder 6i: how to load an image on the layout dynamically?

Posted on 2009-05-20
3
5,363 Views
Last Modified: 2013-12-07
Hello!
I need to dynamically load an image from local hard disk during the runtime of a report. I want to do it in a way to check first if exists the image and then load it! How could I do it?

Thank you in advance!
0
Comment
Question by:vfafou
3 Comments
 
LVL 35

Expert Comment

by:Mark Geerlings
ID: 24442095
How do you run Reports6i (in client/server mode, or from an application server)?  If you run Reports6i locally (in client/server mode) this may be possible, but if you run it from an application server as a web-enabled application, I'm sure you cannot load an image from a local hard disk (unless you mean local to the application server).
0
 
LVL 1

Accepted Solution

by:
Tomac_Yao earned 500 total points
ID: 24461182
If the column from the base table is a blob the contents will be displayed as an image by using the layout wizard.

How to get a image from the user and store it in the Db (as BLOB) using web forms 6i?

Familiarize yourself with O'Reilly's PL/SQL Built-In Packages, especially DBMS_LOB and UTL_FILE.
Familiarize yourself with Oracle's PL/SQL reference manual at
                                http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm
                                    especially PL/SQL LOB datatypes from the PL/SQL datatypes chapter
                        also Oracle's PL/SQL Packages and Datatypes reference manual at
                               http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm

1) upload file from user using the forms read built-in.
2) use UTL_FILE to read and save the contents of the file to the server
3) use DBMS_LOB to save the file as a BFILE datatype
4) Using two tables one with a BFILE column and one with a BLOB or GLOB column.  Also have an Oracle DIRECTORY type defined
5) Use a trigger from the BFILE table to load the GLOB table using DBMS_LOB
6) have the form refresh the query after the GLOB is stored

You can use savepoints for commit/rollback control

please refer the follow links.

http://www.experts-exchange.com/Software/Server_Software/Application_Servers/Java/Oracle_IAS/Q_21483025.html
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question