?
Solved

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

Posted on 2009-05-20
3
Medium Priority
?
5,678 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Suggested Courses

770 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