Show BLOB in Forms 6i
Hello:
I've got a table with a BLOB field.
I saved an image or another document using DBMS_LOB package.
Now I want to show it in a Form(6i).
I found this rutine but i don't know how show the blob field in a form.
Could anybody help me, please ?
Thanks.
DECLARE
ac BLOB;
amount BINARY_INTEGER;
offset INTEGER;
buf RAW(2000);
BEGIN
/* select the LOB from which to read and return the locator into 'ac' */
SELECT audio_clip INTO ac FROM multimedia_table WHERE id = 1;
/* open the LOB */
DBMS_LOB.OPEN(ac, DBMS_LOB.LOB_READONLY);
/* read the LOB value into 'buf' */
amount := 2000;
offset := 1;
DBMS_LOB.READ(ac, amount, offset, buf);
/* close the LOB */
DBMS_LOB.CLOSE(ac);
END;
You can directly use read_image_file built in to read an image from the clients system directly into a image object. And regarding form server crash, it is no where related to the form u are running. try to invoke forms runtime screen(which is available in forms installed software) and work with it.
And web.show_document cannot be used to open images from client side. As the form server will not recognise the clients file system.
Similar Messages
-
Insert picture in a blob column and show in oracle forms
hi ,
please help me with this
I am trying to insert a picture into a blob column of a table and show that in oracle forms , but not able to do it .
I am using version 10g for both database and forms .
Please tell me how to insert a picture in a blob column that is stored in my 'c:\test' folder
and also how to show that in forms .To populate the Image Item you have to use the Webutil Client_Read_Image_File() built-in.
here
http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/builtn_r/readimag.html&vtTopicId=
To add an Image Item to your block based on the table that contains the BLOB column, then give this Image Item the BLOB column name.
So that, all you have to do is to execute query on that block. -
How to show Blob column in APEX application
I have table with blob. The images are loaded through a scheduled night process. These are not the images uploaded using APEX. How can I show these images using APEX?
Thank you,Hello user,
Although the purpouse of this blog post bij Dimitri is quite different, you can see in the 3th and 4th picture what you need to do: http://dgielis.blogspot.com/2008/07/show-blob-of-other-table-in-apex-form.html
Greetings,
Rutger
http://rutgerderuiter.blogspot.com/
===============================================================================
You can reward this reply by marking it as either Helpful or Correct ;-) -
How to show BLOB type Column ? In XE
How to show BLOB type Column as image in APEX report area? (In XE)
I did it with the following 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 'JPEG', MLOGO, 'IMAGE', DBMS_LOB.getlength (MLOGO)
INTO l_mime, lob_loc, l_file_name, l_length
FROM CARS_TABLE
WHERE M_ID = p_image_id;
OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
HTP.p ('Content-length: ' || l_length);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (lob_loc);
END my_image_display;
GRANT EXECUTE ON my_image_display TO PUBLIC;
and executed the following command
CREATE PUBLIC SYNONYM my_image_display FOR shema_name.my_image_display;
but under XE , I can not see synonym? why?sakrami,
Your question really belongs in the XE forum:
Oracle Database Express Edition (XE)
I think this posting addresses your question:
Re: Handling of pictures changed? Item values not properly updated in Beta
Joel -
How to make an Iview of an Internal Request for show an Adobe Form(from R3)
Hi forum
I need to show an Adobe Form (building in R3), in the role of Employee Self-Service of SAP EP. I read that this is possible building an Scenario, but i don´t have very clear the steps.
This are te steps that i made:
1) I create a scenario with de ISR Wizard, and i tested it and works ok.
2) I made an iview of the Web Dynpro Application sap.com/pcui_gp~isr with de application parameters
SCENARIO=ZZZZ&MODE=DISPLAY&sap.wdarfc.useSys=WD_EMPLOYEE_MODELDATA_DEST:PL7&sap.wdarfc.useSys=WD_EMPLOYEE_RFC_METADATA_DEST:PL7
3) I made a Delta Link of this Iview to the role of ESS.
I test, and i don´t show anything.
Is there something bad ?
Thnks
Josué CruzHi Narasimha
In what transaction can i change this property, by de SFP ?
Thnks
Josué Cruz -
How to show chinese char form db in my jsp portlet?
How to show chinese char form db in my jsp portlet?
I had tried to set contentType in renderResponse, but itn't work ..Bent,
You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
Peter -
I have trouble with iCloud. I doest show my notes form my iPad?
I have trouble with iCloud. I doest show my notes form my iPad?
My car broke last week. Can you tell me what's wrong with it?
-
Reset Form button showing as Submit Form button?
Hello....
I have run into an odd issue that I can not figure out. For the past year, I have been creating and manually distributing various forms to our Sales Engineering group and outside partners. These forms are all designed from a common template we developed that includes a standard “Reset Form” button. Upon sending out a new form, I received an email with a screen shot that showed the Reset Form button as “Submit Form”. The partner went on to say that they thought it was the same as another form they have from me, which also shows a Reset Button as “Submit Form”
The end user states they are using Adobe 8.1.4. The forms were developed (9 Pro) LC Designer ES 8.2 and are set to be 8.0 or higher compatible. This is the first time I have heard of this and cannot figure out the cause. The label on the canned button itself is being changed from Reset to Submit.
Does anyone have any thoughts as to what would cause this and how to correct? I can not assume that this is the only time this has happened, but it is the first I am hearing of it.
Thank you and my apologies if this should have gone to another forum group
Chris Link, CTS, EAVA
Sr. Design EngineerI have not heard of this before .....can you send the template to [email protected] so I can investigate? Please include a description of the issue in the email.
Paul -
How can we show a cq5 form in an overlay
I have the code below to show a button in a overlay.
<div class="overlay22" id="overlay22" style="display:none;"></div>
<div class="box22" id="box22">
<input type="submit" value="Submit" class="buttonclick" id="buttonclick" />
</div>
Can we show the cq5 form in the overlay instead of hardcoding in the overlay.
Thanks,
Balaji.Hi pankaj,
The Table Columns are generated dynamically by node attributes assigned to it.
So i tried to add an attribute to the node but it din't reflected in the table column. i could see the Node structure in the debugging
mode with the added attributes but in the table layout the column(attribute) is not added(seen).........
So do i need to change any of the table attribute which is restricting dynamically to specfic columns only.....!!! -
Show/Hide Sub Forms in LiveCycle ES 8.2
Hello All,
I am using Livecycle to create a form and want following functionality:
If a particular value is selected from drop-down box, it should hide/show a sub-form.
However, I am not able to do it. I looked at adobe livecycle docs, Adobe user forums, and GOOGLE...but fail to run the code.
I have used following PDF as example:
http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingObjectPresen ce.pdf
The code below is written on drop-down box and I have BMD_Form as subform
----- form1.POS.Emphasis_info.subformOptions::change - (JavaScript, client) ------------------------
switch (xfa.event.newText) {
case "Invisible":
form1.POS.BMD_Form.presence = "invisible"; or
break;
case 'Hidden':
form1.POS.BMD_Form.presence = "hidden";
break;
default:
form1.POS.BMD_Form.presence = "visible";
break;
Thanks
ViralI found it after banging my head....
-
Show BLOB icon based on file type?
I have a report which shows BLOB file types as thumbnails. You click on the icon and the file pops up in its own window. This is all based on the How-To docs for APEX on OTN. That said, when the blob is an image, the icon shows up as a small preview of that image. However when the blob is something else, say a word document, it shows up as blank. You can still click on it, but the thumbnail is blank.
This code call the image:
href="javascript:popupURL('#OWNER#.download_my_file?p_file=#ID2##NAME#')"
img title="Click to pop up large image" src="#OWNER#.download_my_file?p_file=#ID2##NAME#" width="57" height="75"
Does anyone have an clever ideas as to how I would display the Word icon if it is a word document or the Excel icon if it is an excel document. TIA.Here is your missing part...showing icons code...
SELECT '< a href="apex_util.count_click?p_url=#OWNER#.get_doc?p=' || doc_id || '&p_cat=DOCS&p_id=' || doc_id || '&p_user=' || :app_user || '&p_workspace=' || apex_custom_auth.get_security_group_id || '" >< img src="' || decode(mime_type, 'application/vnd.oasis.opendocument.text', '#APP_IMAGES#icodt.GIF', 'application/vnd.ms-excel', '#APP_IMAGES#ICXLS.GIF', 'application/msword', '#APP_IMAGES#ICDOC.GIF', 'application/pdf', '#APP_IMAGES#icpdf.GIF', 'application/vnd.ms-powerpoint', '#APP_IMAGES#ICPPT.GIF', 'application/vnd.oasis.opendocument.spreadsheet', '#APP_IMAGES#iccalc.GIF', 'application/vnd.oasis.opendocument.presentation', '#APP_IMAGES#icodp.GIF', 'text/plain', '#APP_IMAGES#ICTXT.GIF', 'application/x-zip-compressed', '#APP_IMAGES#ICZIP.GIF', '#APP_IMAGES#ICGEN.GIF') || '" width="16" height="16" border="0" / >< /a >' "Type",
'< a href="#" onclick="doc_menu(this); return false" class="repmenu" id="' || doc_id || '" >' || name || '< /a >' "name",
updated_by,
updated_on,
checkedout_by
FROM doclib_documents
WHERE revision_of = 0
AND deleted_as_of = to_date('04-22-2004', 'MM-DD-YYYY')P.S:
Change "< " to "<" and " >" to ">"...because otherwise code would not be seen on forum...
Message was edited by:
Funky -
Version 11.1.1.1.0
After run the .jspx page don't show any error but don't show blob image in page.
Servlet Code is
public class ClsServlet extends HttpServlet{
public ClsServlet() {
super();
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
String appModuleName = "image.model.AppModule";
String appModuleConfig = "TempAppModule";
String imgno = request.getParameter("imgno");
String tblName = request.getParameter("tblnm");
String clmName = request.getParameter("clnm");
String pkclmName = request.getParameter("pkclnm");
String mType ;//= request.getParameter("mtype");
mType = "jpg";
String voQuery =
"select " + clmName + " from " + tblName + " where " + pkclmName +
" = '" + imgno + "'";
String mimeType =
mType; //"gif";//this.getServletConfig().getInitParameter("gif");
ApplicationModule am =
Configuration.createRootApplicationModule(appModuleName,
appModuleConfig);
am.clearVOCaches("TempView", true);
ViewObject vo = null;
//String s;
System.out.println("voQuery="+voQuery);
try {
vo = am.createViewObjectFromQueryStmt("TempView", voQuery);
} catch (Exception e) {
System.out.println( e.toString()+" err:VO Exists...");
System.out.println("before run============= !!!");
// Run the query
try {
vo.executeQuery();
} catch (Exception e) {
System.out.println(e.toString());
// Get the result (only the first row is taken into account
System.out.println("after run============= !!!");
Row product = vo.first();
BlobDomain image = null;
// Check if a row has been found
if (product != null) {
System.out.println("onside product============= !!!");
// We assume the Blob to be the first a field
image = (BlobDomain)product.getAttribute(0);
if (product.getAttributeCount() > 1) {
mimeType = (String)product.getAttribute(1);
} else {
//LOG.warn("No row found to get image from !!!");
//LOG.warn("No row found to get image from !!!");
System.out.println("No row found to get image from !!!");
vo.remove();
//vo.clearCache();
return;
System.out.println("Set Image============= !!!");
// Set the content-type. Only images are taken into account
response.setContentType("image/" + mimeType);
OutputStream os = response.getOutputStream();
InputStream is = image.getInputStream();
System.out.println(image.getBufferSize() + "image.getBufferSize()");
// copy blob to output
byte[] buffer = new byte[image.getBufferSize()];
int nread;
vo.remove();
//while ((nread = is.read(buffer)) != -1) {
while ((nread = is.read(buffer)) != -1) {
// try {
os.write(buffer);
System.out.println(buffer.length + "Set Image============= loop!!! " +
nread);
System.out.println("==out strim===" + os.toString());
is.close();
os.close();
os.flush();
// Remove the temporary viewobject
vo.remove();
//vo.clearCache();
// Release the appModule
Configuration.releaseRootApplicationModule(am, true);
how can i show this imageHard to tell from your code and the information given.
Do you get the image from the DB?
Can you shoe the code to show the image on the page?
Timo -
Where to put the GIF/JPG files so they show up in Forms Developer
Hi:
This refers to Forms 10gR2; Forms Builder running on Windows XP......
Where do I put the GIF and JPG files referenced by the "iconic filename" property so that they show up in Forms Builder? By placing them in the jar file, I can get them to appear at runtime, but NOT in development!
I have tried putting the files in the same directory as the FMB, as well as in C:\DevSuiteHome_10g\forms\java (where the image jar file resides).
In each case, I have included the path in the FORMS_PATH environment variables.
ThanksHi,
For design time, you need to use the UI_ICON and UI_ICON_EXTENSION environment variables. Set them in the registry.
UI_ICON=location where you have the image files.
UI_ICON_EXTENSION=Extension of your image files (ICO / GIF / JPG)
Edit :
Refer : http://www.oracle.com/technology/products/forms/pdf/10g/frm10gnewfeatures.pdf
Search for UI_ICON and UI_ICON_EXTENSION
-Arun
Edited by: Arunkumar Ramamoorthy on Jan 26, 2010 6:26 PM -
Show or hide form fields based on cfselect selection
Hi,
I'm using ColdFusion 9 and
I want to show/hide a form field type=checkbox if an assigned value is selected in a dropdown list, but it doesn't work.
I use a javascript function.
My question is: Are there better possibilities with ColdFusion to do this or is Javascript the best solution???
Here is my code:
<script type="text/javascript">
function show(){
var select = document.getElementById('dropdownlist').selectedIndex;
if(select == 1) document.getElementById('area').style.display = "block";
else document.getElementById('area').style.display = "none";
</script>
<cfquery name="select_list">
select * from table
</cfquery>
<cfform name ="form">
<cfselect name="dropdownlist" onChange="show();">
<option value="0">please select</option>
<cfloop query="select_select_list">
<option value="#select_select_list.id#">#select_list.name#</option>
</cfloop>
</cfselect>
<div id="area" style="display:none">
<cfloop query="select_list" >
<tr style="display:none">
<td>
<cfinput name="gsu" type="checkbox" value="#select_list.id#"> #select_list.name#
</td>
</tr>
</cfloop>
</div>
</cfform>
Thank you and best regards!
ClaudiaOkay, thank you for your answer.
I changed the javascript function and replaced the <div> with the <table> tag. Then it works.
Here is an extract of my code:
<script type="text/javascript">
function show(){
var select = document.getElementById('dropdownlist');
var strUser = select.options[select.selectedIndex].value;
if(strUser== 1) document.getElementById('area').style.display = "block";
else document.getElementById('area').style.display = "none";
</script>
<cfquery name="select_list">
select * from table
</cfquery>
<cfform name ="form">
<table id="area" style="display:none">
<cfloop query="select_list" >
<tr">
<td>
<cfinput name="gsu" type="checkbox" value="#select_list.id#"> #select_list.name#
</td>
</tr>
</cfloop>
</table>
</cfform> -
UDF is not showing at Forecast Form - Row Level
Hi Expert s,
I am facing a hurdle while showing UDFs in the Forecast Row Level .
The UDF is created . but at the Forecast Form , it is not showing at the Row Level as well as it is not showing in the Form Setting .
Thanks
Ashish RanjanHi Ashish......
Unfortunately SAP has given the provision but it seems it does not work.....
It does not display UDF at Forecast level......
Regards,
Rahul
Maybe you are looking for
-
Hi All, I'm getting the below error in My SHarepoint 2013 search Administration page. Crawler background activity - The search application 'Search Service Application 1' on server "" is not provisioned. Confirm that the Microsoft SharePoint Foundati
-
I have CS6 design standard, indesign stopped responding earlier in the week, I can't remove it from the dock. I've uninstalled it and reinstalled it a number of times but it still won't open. I get messages saying "You can't open the application "Ado
-
SETUP tables not filling for 2LIS_02_ITM
Hello all, I am trying to run the SETUP process from OLI3BW for few Purchasing doc's But I do not see any entries in the setup table 'MC02M_0ITMSETUP' after the SETUP run. and Yes,I have DELETED setup tables data prior to running the Setup process.
-
Dynamic URL for HTTP receiver adapter
Hi all, when the XI send the http request to the target system, the format maybe like this: header + body the body is including: Prolog, payload and Epilog here is about the target system have a 'input' parameter(maybe string type) is it possible to
-
How do create a channel with no title bar/header ?
Hi, II need to add a image to Portal desktop. I have created a channel without boards but I could not remove the title bar. Has any one managed to remove the title bar without editing the leafwrapper.jsp ? Thanks, Ravi