Solved

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

Posted on 2009-05-20
3
5,059 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 34

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to recover a database from a user managed backup
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now