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 AM
I 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;
Similar Messages
-
How to connect a PDF form to SQL server database through web service?
Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice.Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice. -
HOW TO DISPLAY PICTURE IMAGE ON FORM - I HAVE THE SOLUTION NOW!!
Hi Kiran,
I am very grateful to you and all who contributed to find a solution to my problem. I was stacked at the Page Definition properties in relation to the tutorial. I spent several overnights and later realized that the edit that would activate the download link is not in the SOURCE category but rather in the SETTINGS with 11g edition. When I changed the setting I had it perfectly. Thanks so much to all of you. I really enjoy the Apex Forum though I am new in Oracle.
Howbeit; what should I do to have the picture always displayed on the form so that whenever the particular form is opened the image would be seen? Looking forward for the solution.
Godis-TeiHi,
You need to use item type : Display image
This example shows you how to display image on a report, as well as in the form when you edit a record on the report:
http://apex.oracle.com/pls/apex/f?p=63066
worksapce: somefeto
user: test
pwd: test
Regards,
Fateh
Edited by: Fateh on Oct 24, 2012 11:56 PM -
HOW TO DISPLAY PICTURE IMAGE ON FORM
I am a new learning database developer/programmer. I am proud to use Oracle Application Express 11.2. I have succeeded creating a table, a form and report on the table. I have used Blob as data-type for the Photo column. The browse link locates the picture folder directory, but it does not display on the form. As I said; I am very new in database developing and also using Oracle. Please help me in how I can display image on my database. What should I do? Which property category should I do the settings and with what code?
Hello Shiv,
>
Shiv wrote:
Can you explain your demo link "Display image while uploading"?
>
I have written a javascript function on the onchange event of File Browse :
<script type="text/javascript">
window.URL = window.URL || window.webkitURL;
function handleFiles() {
var fileList = document.getElementById("resImg");
//alert(fileList);
var fileInput = $("#P1_FILE_NAME")[0];
if (!fileInput.files.length) {
fileList.innerHTML = "<p>No image selected!</p>";
} else {
fileList.innerHTML = "";
var img = document.createElement("img");
img.src = window.URL.createObjectURL(fileInput.files[0]);
img.height = 128;
img.width = 128;
img.onload = function(e) {
window.URL.revokeObjectURL(this.src);
fileList.appendChild(img);
</script>where resImg is a div element in a region where the image displays with region source as :
<div id="resImg" style="width:128px;height:128px;vertical-align:middle;border:.2em solid;">
<p style="text-align:center;vertical-align:middle;">No image selected!</p>
</div>Hope it helps!
Regards,
Kiran -
How to display an image on reports 10g
Hi all
I have a database table that is composed of 2 columns:-
Country_id NUMBER
Country_Flag BLOB
the table is populated with data. I made a report that display the country_id and Country_flag
I Changed the "FORMAT_FILE" property for the field "COUNTRY_FLAG" to image.
When i preview the report from the Reports Builder, the image is displayed and every thing is good,
But when I run my report from my form in the format pdf, the image is not displayed .
I do not know why?
has any one experienced this problem?
Thanks .
P.S
Report Builder Version :10.1.2.0.2
Data base : 9i
Internet Explorer 8
Adobe Reader 7
I deploy on oracle application server 10gsorry, the problem is that i did not copy the last rdf file to the reports folder on the server.
The report works fine and there is no proble -
How to display iconic images using forms 9i
Hi,
i had created a simple push button ,and made its properties iconic=yes and icon file name =c:\temp\save
i had copied the save.GIF file in the c:\temp path
also i had made necessary changes in the orion.web file
and registry.dat
actually i had the metalink document 203846.1 and followed all the step written in that doc.
but then also during run time i am not able to see the icons.
Can you give me a sample code having only one push button
and all the changes in different files to make the icons appear in web.
I had tried all the steps so pl give me the sample step by step code.
Thanks ,
Kumar IyerHi Kumar,
I think if you follow the oracle note 203846.1 more or less it should be fine. I took a little exception on step 7 which requires modifying the registry.dat file.
I ignored the step 7, try this in forms builder for button property
1) icon filename=save
2) create jar file for icons under c:\temp directory, using the command
C:\Temp>jar -cvf icons.jar *.gif
please note that file save.GIF should be save.gif since java is case sensitive.
3) modify the following entries in file <9iDS_HOME>\forms90\server\formsweb.cfg
archive_jini=f90all_jinit.jar,/forms90/icons/icons.jar
imageBase=codebase
so this should help in your test form to display icon at runtime.
-Lokesh -
How to Display an Image on my FORM
Good Day!
I would like to ask some help from you guys with my problem on how to display an image on my form. I would like to display my uploaded image on my form but instead of an image, the get_blob_file is showing. By the way, I'm using Apex 4.1
I downloaded the Order Entry Sample Application and followed the Page 6, the Product Details. I even made snapshots of each details from Page Rendering to Page Processing in order not to miss a thing.
At the moment, I was able to upload or store the image on my created Oracle table and also able to retrieve it on the Download Link Text with Content Disposition value of Inline, provided by APEX Settings. If I invoke the Download link beside the file browser, a page with the image will be shown, below is the address:
http://127.0.0.1:8080/apex/apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6&p_content_disposition=inline
However, instead of showing the image on a region, below is the one showing on my Form:
<img src="apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6" />
As you can see the parameter values are the same but I know I missed something that's why I'm here :)
I would highly appreciate all the help you can provide and many thanks in advance.
I tried to change gear by making an html region of type PL/SQL (anonymous block) and a procedure but still no image :(
Below are the scripts.
declare
cursor cur is
select *
from wsemployee
where empid = :P230_EMPID;
begin
for rec in cur
loop
IF rec.mime_type is not null or rec.mime_type != '' THEN
htp.p( '<img src="my_image_display?p_image_id='||NVL(rec.empid,0)||'" height="'||100||'"/>' );
else
htp.p( 'No Image ');
END IF;
htp.p( ' ');
end loop;
end;
PROCEDURE
create or replace PROCEDURE my_image_display( p_image_id IN NUMBER)
AS
l_mime VARCHAR2 (255);
l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, PHOTO_BLOB_CONTENT, PHOTO_FILENAME,DBMS_LOB.GETLENGTH(photo_blob_content)
INTO l_mime,lob_loc,l_file_name,l_length
FROM wsemployee
WHERE empid = p_image_id;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || l_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(l_file_name,instr(l_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
END my_image_display;
Edited by: user13831927 on Dec 22, 2012 3:24 PMHi Ying,
you can add a UDF to the table spp2 with a programm
but the table is not yet listed in the 'Manage User Fields' form.
there's no way to "enable" it - sorry -
How to show JPEG-images with Forms?
I am able to display .bmp-images in Forms, but according to the documentation it must be possible to display JPEG-images as well. How do I do that?
nullProcedure is the same as you call bmp. but you have to write 'JPEG' in place of format where you write bmp. and file_name.JPG where you write file_name.bmp.
That may help.
Mustafa -
How to display a image in webdynpro view using a bytearry
Hi Frndz..
How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
*byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
by using this i need to show image in view..
Kindly help me ....
Thankas in Advance
Regards
RajeshHi,
byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
imageEle .setVa_Name(res.toString());
wdContext.nodeVn_ImageTab().addElement(imageEle);
Hope this may help you.
Deepak -
How to run a report in form 10g
How to run a report in form 10g;
RUN_REPORT_OBJECT - check the on line help and there is a great paper on otn.oracle.com/products/forms and click on 9i papers (it will be relevant for 10g as well)>
Regards
Grant Ronald
Forms Product Management -
How to display an Image which is on Panel behind JScrollPane - Please Help
Hiii All,
How to display an Image which is on Panel behind JScrollPane. I have set the setOpaque() method of JScrollPane to false still when i run the program the JScrollPane is set as Opaque.. Can some one please help me in this...
Thanks,
Piushyou need to set both
scrollPane.setOpaque(false);
scrollPane.getViewport().setOpaque(false); -
How to call Reports in oracle forms 10g
Dear All,
How to call Reports in oracle forms 10g.
I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
Please give me the Solution.
Thanks and Regards,
FaziludeenHi Omkar,
Please check the following code.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
repid := FIND_REPORT_OBJECT('POL_REP');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid,plid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
'¶mform=no');
END;
I am used to Start the Report sever 'Rwserver Server=prod_Report_Server Start'
OracleAS Report Services
Version :- 10.1.2.0.2
Name :- prod_report_server
Status :- Server is Shutting down
Jobs in Queue 0
Active Engines 0
I got the Following Error when I trying to run the Report
FRM-41211: Integration error:SSL failure running another product
Thanks and Regards,
Faziludeen -
How to display the image which in KM folder using url iview
Hi Friends
How to display the image, which is under KM folder structur using the url iview.
i trying using url iview url as \document\testfolder\abc.jpg as url for the iview.
but its now working .. so please help me how to slove this problem
If is not the correct way then please suggest me best way to achive this.
Thanks
MukeshHi Mukesh,
I think this may work,
1, Create a HTML Layout.
You can put your image wherever u want with HTML Codes.
Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
With this, u can use the standard KM commands also.
2, U need to use KM Navigation iView for this rather than KM Doc iView.
3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
Regards
BP -
How to display an image in an alv grid in each corresponding row?
Hi,
please tell me how to display an image in an alv grid in each corresponding row, like;;
tony 23 newyork <image>
Mkitharyan 63 washington <image>
NOT BY HOTSPOTS/URL.you can put image in each cell you want:
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv( ).
DATA lo_value TYPE ref to cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model( ).
data col type ref to CL_SALV_WD_COLUMN.
col = lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'IMAGE' ).
data image type ref to cl_salv_wd_uie_image.
CREATE OBJECT image.
image->SET_SOURCE_FIELDNAME( 'IMAGE' ).
COL->SET_CELL_EDITOR( image ). -
How to invoke ole conatainer in forms 10g
how to invoke ole conatainer in forms 10g
is there any optional area for ole containeryou can chaech webutil demo on oracle web site
Or serch google for Webutil demo
Maybe you are looking for
-
Robohelp 9 on a 64-bit PC?
Does anyone you know of any reasons that Robohelp 9 could not work on a 64-bit PC? Can it run on a 64-bit PC? Thanks in advance.
-
Flash error in computing movieClip width
Can somebody verify that this can be reproduced? 1. Create a new flash document. 2. Draw a horizontal line on stage of width 230, and with a stroke thickness of 6 3. Convert it to a movieClip, and give it an instance name of mcLine. 4. In an actions
-
Error in Miro post S:/SAPPCE/DPCM2:003
Hi guys, In the MIRO posting showing this error message S:/SAPPCE/DPCM2:003 Please help me Regards Channa
-
Can cFP-2020 be used like a FP-1600 without a downloaded vi
Is it possible to use a RT FieldPoint interface module like a non-RT module? I want to adapt some code to RT but would like to transition to the FieldPoint hardware. Is it required that the cFP-2020 module have a downloaded vi to operate?
-
PAPER SIZE OR TYPE IS INCORRECT on printer display
I get this message on my printer when ever i send an eprint that contains a jpeg attachment, what am i doing wrong? my printer is set up with 8x11 plain paper in the portrait direction. the email prints out properly but then i get this message when I