Load Image in Forms 10g
Dear All
I want to load image from hard Disk to data base in forms 10g.
I have a Image item and Browse button in my forms and in database it is a BLOB column.
I need when i click on Browse Button then it will open the browse window and you can select on that.
How to do ? Urgent , please help me .
Thank you.
or
try this.
declare
l_file_name varchar2(383);
begin
l_file_name := webutil_file.file_open_dialog( );
if
l_file_name is not null
then
if
:block.rowid is not null
then
create_record;
end if;
client_image.read_image_file ( l_file_name, substr ( l_file_name, instr ( l_file_name , -1 ) ), 'images.images' );
end if;
end;Note:- u have to attach webutil.pll without library it will not work.
Sarah
Similar Messages
-
How to display an image in FORM 10g/11g data recovered through Web Services
I need to show in a FORM 10g/11g an image that is recovered from a Web Service (XML format).
(The Web Service retrieves several images from SQL Server database).
versions previous 6i... one use field type ActiveX Control, and there showed the respective images, even with previous and next controls. Aspect that new versions of form 10g & 11g is obsolete.
Any help thank you.
Edited by: 859272 on 16/05/2011 03:06 PM
Edited by: 859272 on 17/05/2011 07:15 AMI tried it doing it this way and it worked -
1. copy the image into the directory aliased in 9iAS configuration file as '/images/'.
2. In the PL/SQL code section after header, I write the following code -
begin
htp.p('<img src="/images/pobexp.gif"/>');
end; -
created a login form and needed some decoration on a background...
seems i browse all over the internet and it says to attached an image into form by using this ;
read_image_file('D:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Blue hills.jpg','jpg','image13');
but i wonder where to put this code...
newbie here plz help
m.f.nasirhi
if u want to import image then go to edit/import/image, but if u want to read image then try something like this.
when-new-form-instance trigger.
read_image_file('image.gif','URL','block.image');sarah -
Accessing Image on the scanner and load image to form scren
Hi,
Iam working with Developer 2000 with Forms 6i.
I want one information.
I want to access the scanner through D2k Form and i have put that image which is one the scanner to image item place on theform.
so please guide how to do this one
waiting for ur reply
so please give reply to [email protected]
Eagerly waiting for the reply
Thanks & Regards
durga raoFind out what interface the scanner has (OCX probably) and use OLE2 to activate it.
Then use read_image_file built-in to read the scanned image file to the Form. -
How to display image in oracle forms 10g
hello good morning
I need to display an image in forms 10g
I can use READ_IMAGE_FILE ('imagen_name', 'URL', 'block.image_item');
ok if I have my forms stored in a directory -----> */ FORMS / MYSAPP* here are all my fmx
HERE ARE MY PICTURES ---> */ FORMS / MYSAPP / IMAGES*
As I can put the URL to access an image that is in that directory
sldsHi,
You should have the webutil
see this post
http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm -
Hi all,
I am using Oracle 10g with Dev suite.
I have scanned photos in tiff format and saved in the database as longrow field. when i fetch the photos in forms 5 the quality of the photo is good but when photos are fetched using Dev Suite it get distorted.
Please help
SukantoSalut Francois,
Do you know if Mark blog entry for viewing TIFF images within Forms 10g is available in English (or French)?? It is a mission critical issue for the project that I'm on right now.
I did ask Mark on different occasions if his blog entry is available in English, but no replies yet.... there may be a language issue!
Merci!
Stephane -
Hi all,
I'm having problems displaying the gif images in Forms 10g Version 10.1.2.0.2.
I did the following:
(1) created a myicons.jar file with the command jar -cvf mygifs.jar *.gif
(2) copied the created jar file to /$oracleHome/forms/java
(3) customised the archive_jini parameter in formsweb.cfg to read: archive_jinir=frmall_jinit.jar,mygifs.jar
(3) Added the UI_ICON and UI_ICON_EXTENSIONS parameters in the registry.
The gifs are displayed in the form builder but NOT in the browser when I run the form.
Kindly advice on what I did wrong.
Rgds.Hi
you need to set imagebase=codebase for your application in the formsweb.cfg file
Frank -
Hi
Looking for real life examples on how have you solved load balancing between Forms 10g application servers on Windows 32bit platform.
Any good proven solutions for it?
ThanksI don't have a real life example I can give you but all of the details for performing load balancing is available in the Oracle Forms Services 10g Advanced Configurations white paper (in the Load Balancing Oracle Forms section).
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Loading image from jars only once in oracle forms 10g
Hi,
I have an oracle forms 10g application which loads image from a jar. Every time i click on a button "A" that loads the image "image" on another button "B" in the same screen, a message is displayed in the java console "Loaded image: jar:https://+IP+/forms/java/+myjar+.jar!/image.gif". So after 10 clicks, i get the same message displayed 10 times. In the form, i've called:
SET_CUSTOM_PROPERTY(p_object_name, 1, 'IMAGE_NAME_ON', '/'||p_image_name);My question is the following:
- is there a way to load this image once and use it later without having to load it every time i clik on "A"? if yes, how?
P.S.: if this thread shouldn't be posted in this forum, please redirect me to the right one.
Thanks in advanceAh okay.
I'm using the rolloverbutton.jar (RollOver Button PJC) [RolloverButton.java -> authors: Steve Button, Duncan Mills].
Here is the part concerning the IMAGE_NAME_ON function:
// make sure we are in rollover mode
enableRollover();
log("setProperty - IMAGE_NAME_ON value=" + value.toString());
// load the requested image
m_imageNameOn = (String) value;
loadImage(ON,m_imageNameOn);
// reset the currrently drawn image if needed
setImage(ON,m_state);
return true;where loadImage function is:
URL imageURL = null;
boolean loadSuccess = false;
//JAR
log("Searching JAR for " + imageName);
imageURL = getClass().getResource(imageName);
if (imageURL != null)
log("URL: " + imageURL.toString());
try
m_images[which] = Toolkit.getDefaultToolkit().getImage(imageURL);
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error loading image from JAR: " + ilex.toString());
else
log("Unable to find " + imageName + " in JAR");
//DOCBASE
if (loadSuccess == false)
log("Searching docbase for " + imageName);
try
if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
imageURL = new URL(imageName);
else
imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
log("Constructed URL: " + imageURL.toString());
try
m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error reading image - " + ilex.toString());
catch (java.net.MalformedURLException urlex)
log("Error creating URL - " + urlex.toString());
//CODEBASE
if (loadSuccess == false)
log("Searching codebase for " + imageName);
try
imageURL = new URL(m_codeBase, imageName);
log("Constructed URL: " + imageURL.toString());
try
m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error reading image - " + ilex.toString());
catch (java.net.MalformedURLException urlex)
log("Error creating URL - " + urlex.toString());
if (loadSuccess == false)
log("Error image " + imageName + " could not be located");In this case, what shall i modify?
Thanks in advance -
Need help Loading images with selection on a form field?
So I'm kind of a newb.. I can do basic forms but I need to set up a form field drop down box that will give me the ability to load images correlating to the users choice. I'm at a total loss for where to start, so ANY help would be appreciated. If you know of any good books or tutorials on the subject please share.
Thanks in advance
Sincerely,
Stumped4nowP.S. I think I'm getting a better understanding of OCGs after lots of research today. However I still seem to be missing something
var docOCGs = this.getOCGs();
for (var x=0; x < docOCGs.length; x++)
if(docOCGs[x].name == "Layer1")
docOCGs[x].state = !docOCGs[x].state; -
FRM-92101: Load Balancing Forms 10g with Web Cache
Hi,
I´m having some problems with Oracle Forms and Webcache 10g and I was wondering if you
could help.
Machines: (Pentium IV 2.6 GHz; 2GB RAM; 80GB HD)
A. Red Hat Linux AS 2.1
Oracle AS 10g - Infrastructure Installation
B. Windows 2000 Server - Service Pack 4
Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
C. Windows 2000 Server - Service Pack 4
Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
I didn´t apply any Patchsets of Oracle AS 10g. My current version is 9.0.4.0 .
Goal:
Use Oracle Webcache 10g on machine B for Load Balancing an Oracle Forms Application
on machines B and C.
Facts:
The Oracle AS 10g installation on the 3 machines was made without problems.
The Forms Applications are running without problems on both Forms servers in machine B and C.
Symptoms:
I´m getting the following error when I try to acces the forms application through Webcache:
FRM-92101: There was a failure in the forms server during startup.
This could happen due to invalid configuration.
Please look in the web-server log file for details.
But, this error happens ONLY when BOTH OC4J_BI_Forms instances (machines B and C) are
running.
When just one of the OC4J_BI_Forms is running everything works fine.
Webcache Configuration:
I´ve followed Metalink note 207668.1: Configuring Web Cache as a Load Balancer for Application Servers
step by step to make the configuration of the following components:
1. Configuration of the origin servers
2. Configuration of Site definitions
3. Configuration of Site to server mapping
After that, I´ve follwed the Metalink note 229900.1: Integrating and using Web Cache with Forms 9i for Load Balancing
step by step to make the configuration of the following components:
4. Session Binding
Then I try to test the Load Balancing and I got the error FRM-92101 when both OC4J_BI_Forms
instance were running.
I´ve searched Metalink and found note 268830.1: Webcache Won't Load Balance 2 Forms Instances.
Following the note instructions I did the following changes:
Added these lines at the end of HTTPD.conf (machine B):
CookieTracking On
CookieName myformscookie1
Added these lines at the end of HTTPD.conf (machine C):
CookieTracking On
CookieName myformscookie2
In Webcache configuration:
I´ve Changed the default session binding from JSESSIONID to "ANY SET COOKIE" for the
site's session binding.
But even after these changes I´m getting FRM-92101 error on the same conditions.
How can I solve this problem ?
Thank you in advance.
Marcus Santos.
([email protected])Just ran into this problem last Tuesday, Nov.30 and applied the changes today.
My configuration is similar to yours: 9.0.4 web cache on machine A, 9.0.4 10gAS forms and reports standalone on machine B and C (not a cluster, no infra).
I appended the Cookie lines you mentioned in httpd.conf located in $ORACLE_HOME/Apache/Apache/conf in both machines B and C.
One important thing you may have missed. After changing httpd.conf in each 9iAS instance, you need to make the change known to dcmctl so issue:
dcmctl updateConfig -ct ohs
Then do the following for each 9iAS instance and it should be ready for webcache:
dcmctl stop
dcmctl start
Setup Any-set-Cookie in webcache instead of JSESSIONID and the whole thing should now work. You can run a form through machine A which will load balance to either machine B or C (which can both be up). Then, try shutting down 9iAS on machine B or C and run a form again. They now all work.
HTH,
Raffy -
FRM-92101: Load Balancing Forms 10g with Webcache
Hi,
I´m having some problems with Oracle Forms and Webcache 10g and I was wondering if you
could help.
Machines: (Pentium IV 2.6 GHz; 2GB RAM; 80GB HD)
A. Red Hat Linux AS 2.1
Oracle AS 10g - Infrastructure Installation
B. Windows 2000 Server - Service Pack 4
Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
C. Windows 2000 Server - Service Pack 4
Oracle AS 10g - BI and Forms Installation (Using Infrastructure on machine A)
I didn´t apply any Patchsets of Oracle AS 10g. My current version is 9.0.4.0 .
Goal:
Use Oracle Webcache 10g on machine B for Load Balancing an Oracle Forms Application
on machines B and C.
Facts:
The Oracle AS 10g installation on the 3 machines was made without problems.
The Forms Applications are running without problems on both Forms servers in machine B and C.
Symptoms:
I´m getting the following error when I try to access the forms application through Webcache:
FRM-92101: There was a failure in the forms server during startup.
This could happen due to invalid configuration.
Please look in the web-server log file for details.
But, this error happens ONLY when BOTH OC4J_BI_Forms instances (machines B and C) are
running.
When just one of the OC4J_BI_Forms is running everything works fine.
Webcache Configuration:
I´ve followed Metalink note 207668.1: Configuring Web Cache as a Load Balancer for Application Servers
step by step to make the configuration of the following components:
1. Configuration of the origin servers
2. Configuration of Site definitions
3. Configuration of Site to server mapping
After that, I´ve follwed the Metalink note 229900.1: Integrating and using Web Cache with Forms 9i for Load Balancing
step by step to make the configuration of the following components:
4. Session Binding
Then I try to test the Load Balancing and I got the error FRM-92101 when both OC4J_BI_Forms
instance were running.
I´ve searched Metalink and found note 268830.1: Webcache Won't Load Balance 2 Forms Instances.
Following the note instructions I did the following changes:
Added these lines at the end of HTTPD.conf (machine B):
CookieTracking On
CookieName myformscookie1
Added these lines at the end of HTTPD.conf (machine C):
CookieTracking On
CookieName myformscookie2
In Webcache configuration:
I´ve Changed the default session binding from JSESSIONID to "ANY SET COOKIE" for the
site's session binding.
But even after these changes I´m getting FRM-92101 error on the same conditions.
How can I solve this problem ?
Thank you in advance.
Marcus Santos.
([email protected])Did you ever Get this to work?
I am having some problems trying to load balance with Oracle Forms, Discover and reports Oracle Application Server Release 10g (9.0.4.0.2) and I was wondering if you could help. Has any one ever got this to work consistently? We are an ERP product written mostly in forms (904) and are trying to implement are largest customer there performance issue so we need the load balancing to work. Will also accept other recommendation as cost effective as solutions.
Site 1:
A: SERVER
Host as1.xyzco.local
Version 10.1.2.0.2
Installation Type Identity Management and Metadata Repository
Oracle Home E:\oracle\inf_1012
Farm as1db.xyzco.net
o HTTP_Server
o Internet Directory
o OC4J_SECURITY
o Single Sign-On:orasso
o Management
B SERVER
Host as2. xyzco.local
Version 9.0.4.0.2
Installation Type Business Intelligence and Forms
Oracle Home E:\oracle\mid_904
Farm as2db. xyzco.net
o Discoverer
o Forms
o home
o HTTP_Server
o OC4J_BI_Forms
o Reports Server
o Web Cache
o Management
C SERVER
Host as3. xyzco.local
Version 9.0.4.0.2
Installation Type Business Intelligence and Forms Discoverer and Reports
Oracle Home E:\oracle\mid_904
Farm as2db. xyzco.net
o Discoverer
o Forms
o home
o HTTP_Server
o OC4J_BI_Forms
o Reports Server
o Web Cache
o Management
All servers Are:
Windows 2003 Standard Server with current service packs
Xeon Dual Processor with 4GB ram
Raid 0 drives 2 for OS and 2 for Oracle
Daniel Brody
[email protected] -
Load Balancing with forms server 10g
Hello,
i've a cliente which is right now processing a migration from a client-server 6i platform (using Terminal Servers) to a forms 10g web platform with several Application Servers 10g in standalone.
At the end, client want to enable Load Balancing in order to have some manage at each Application Server load.
The idea to accomplish is to have an hardware Load Balancer. The client already has a CISCO CSS 11503 SSL.
Is there any documentation where i can check more info about the compatibility/configuration to this architecture.
Thanks for your attention.
regards,
Pedro RibeiroYou can check this doc Link:[http://download.oracle.com/docs/cd/B14099_19/hpux.1012/install.1012/install/toc.htm]
It say all about it, and don't mention nothing about a Load Balancer, but I'll try tokeep searching.
Greetings. -
How could I load image via a Form when it is in runtime by not using default block
1. How could I load image from my local computer to the database via a Form when it is in runtime?
2. And how to display the image stored in the database on a Form ?
Thanks buddy ~
A nice member answered this question already, but I want to know how could I do it by using manual create block instead of using database item directly~
Could anyone help me pls~This is the only way I know right now:
1) Create this table
SQL> desc av_data
Name Null? Type
BLOB_ID NOT NULL NUMBER(10)
BLOB_TYPE NOT NULL VARCHAR2(10)
DESCRIPTION NOT NULL VARCHAR2(25)
BLOB_DATA LONG RAW
2) On form create a button with this 'when-btn-prssed' tgr:
DECLARE
v_dirname VARCHAR2(255);
v_filename VARCHAR2(255);
BEGIN
v_dirname := 'C:\';
v_filename := get_file_name(v_dirname, NULL,
'Bitmap file (*.bmp)|*.bmp|' ||
'JPEG file (*.jpg)|*.jpg|' );
IF v_filename IS NOT NULL THEN
read_image_file(v_filename, 'ANY',
'av_data_image.blob_data');
END IF;
END;
3) Add this pre-insert trigger too :
:av_data_image.blob_type := 'IMAGE';
Sorry if this is not exactly the answer you're looking for.
Bob -
Hii,
I am using forms 10g in which i am having a image showing my application information. I want this image to be displayed all the time. Is there ant thing such as menu can be having image.
One solution i have that is i am using a form in full size which is having image and i am displaying this form with no close allowed property.
But when i am opening a another form and i clicks on the form with image the form i have opened hides behind this form with image. How can i handle this situation.
please helpThere is a solution in MetaLink. See Subject: "Drop Downs Don't Work With Dual Monitors (Extended Desktop)".
Symptoms
When Forms application is dragged from a monitor to another in a dual monitor system, the drop down lists stops working
Cause
This issue was caused both by the lack of Multi-screen Setup Support in Java versions prior to JDK1.2 and by Bug 2772796 - Apps6: Drop Down Menus Invisible When Using Dual Or Multiple Monitor Setup
The bug is fixed in Forms 10.1.2.2 and beyond. It allowed the bounds to be calculated fine across the now available displays.
Solution
If using Forms version 9.0.4.3 then you can apply Patch 2772796 on top of it.
If using Forms 10.1.2.0.2 then upgrade to Forms version 10.1.2.2 or beyond.
Note: If using Oracle Applications 11i, please consult the solution rather in the Note 430179.1 - Drop Down Menus Invisible When Using Dual Or Multiple Monitors
Maybe you are looking for
-
Im trying to getsome code to work for me that sends mail via the javax.mail protocol or api sorry.....anywho i get the mail to send and everything is great will somebody tell me if javax.mail has a simple attachment feature in it i need to attach a f
-
Why can't I see my videos on the computer?
I connect the iPod and I can play all songs on my computer, I can also hear the sound of the video but I can't see it I just see some green colore blinking on the screen... I have iTunes 7... can some one help please?
-
Are all add-ons third party?
I am required by my new job to disable/remove all third-party add-ons. Is there a way to discern which add-ons are third party and which are not? Are all add-ons third party? Please advise. Thanks!
-
Sql parameter substitution problems
Hi, I am having problems with the sql parameter substitution. I have a query that looks like this: select name,value from table where name in ('name1','name2'); I have tried building a string that equals "'name1','name2'" and passing it as a paramete
-
Macbook pro early 2011 freezes, slow, weird fan noise + trackpad jumping around
Hi guys, see the Etrecheck report below. My 13' Macbook pro (early 2011) has been very slow for the last few months, the fan makes a weird blowing noise (several fellow students have looked around what the **** that noise was when it started doing it