Oracle BLOB  Display an image in Web Form

I have an Oracle database that stores image data. The data type of this image column is BLOB. I created a Window application using Visual C#, Oracle Provider for OLE DB to display the images on the Window forms. The mechanism to retrieve the data from Oracle database from client is to call an Oracle stored procedure that returns BLOB type. Now I want to convert it into Web application. I have difficulty to find
(1) Appropriate web control
(2) A way to bind OracleLOB object to this web control so the image can be displayed.
I am aware of the fact that in ASP .NET you can use ImageUrl property of an Image object to link a file stored in a particular URL.
Your help is very much appreciated.

Hi ,
Please can you give me some examples or where can i find the solution.
Can you guys send some FMB examples on [email protected]
Please reply as sson as possible because we got stuck up here.
Regards,

Similar Messages

  • 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 PM

    Hi 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

  • Displaying icons in 10g web forms

    Hi,
    I was wondering if there is anyway I could use my jar file to display my images in my form. I created a jar file with images and I want to use them for my forms. The problem is other developers are using their own images from certain directories. In the registry.dat file they have a directory default.icons.iconpath=/icons/ already in place and in the .cfg file they have imageBase=DocumentBase. In my configuration for my form i put in imagebase=codebase but it seems that the other entry overrides mine because the images do not appear.Is there any way I could use my jar file to view my images without changing what other developers are using or would I have to put them in the directory with all the other ones.
    thanks
    Richie

    Hi,
    I've tried putting the jar file in the directory it mentions in the registry.dat file but that still does not work. I've also tried leaving the parameter in the .dat file blank and setting my imagebase=codebase and i am able to see the icons. My problem is that other developers are already using it using the documentbase and setting the .dat to a specific folder. I just thought there might be a way to read my jar file without interfering with the way the others are displaying their images. Its easier to have all my icons in a jar file then putting them all in a directory.
    thanks
    Richie

  • Displaying an image in a form

    hi,
    i am trying to display an image in a form. The code worked fine in j2me emulator, but when i converted the program to a jar and ran the same program in my mobile phone.
    i get an exception in Image.createImage(.. method
    and exception value is just null.
    i know the image is not found in the specified location. but the image is there in the jar file.
    how do i solve this issue?
    thanks in advance.

    Its definitly the heap size image, it can be case that image size is very large, u just try by optimizing the image and decreasing the size of image,
    or
    the image size(widht*height) is larger than actual phone screen
    try with small image(small width*height) you will come to know the problem
    @rjun

  • Oracle Blob Display Error

    Environment : Using Oracle Forms 6i (Currently on Patch 6.0.8.16) and Oracle
    10g.
    Problem : Error “Ora-00932 Inconsistent Data Types” when displaying a
    blob from a database table using Oracle 10g.
    Problem Description :
    Currently in the existing application we have Oracle Forms 6i with Oracle
    database version 8i.
    There are no errors while displaying a blob (image) from the database table on my Oracle form. Upgraded to Oracle 10g but with the existing version of Oracle Forms we cannot display the blob in the Forms.If I remove the blob display from the form everything else on the form works fine.
    Tried to update the Oracle Forms to version 6.0.8.16 using Patch 7 but it did not resolve the problem.
    Tried to go through the bug fixes in the recent Forms version upgrade released by Oracle but did not see anything related to problem with blob display using Oracle 10g.
    Did anyone else in the group faced the same problem?
    What patch level resolved the problem?
    Any ideas?
    thanks and regards.

    See
    Forms 6i - display into image item picture stored in blob type on database
    problem with images in forms 6i

  • Displaying Custom images in Web Layout

    Hello all,
    Can anyone please tell tell me how to display a custom .gif image in web layout instead of the standard gif(rwbeige_logo.gif). Where do I've to store the image, for it to be detected during runtime. Thanks in advance.
    Reagards,
    Arun.V

    for where you store the image you can store it in the database table in the blob column such as. for the report layaut containing image take the following:
    - in the report layaut you can create a report selecting a table that containing the blob column.
    - in the report layaut, modify the property of the item that present the database blob column to image.
    soufiane

  • Displaying streamed images in Web Dynpro

    Hi All,
    I have following scenario to programme.
    - The DB have "images" stored as BLOB.
    - I need to read the images (stream) and make them visible in Web Dynpro UI.
    Problem is i only one way to providing images in Web Dynpro. The images are picked from url that points to Resource either at temporary location of permanent position Sap Images pool or contribution under mimes folder.
    I see temporary location as one option here but still not able to figure out where to store it !
    Can anybody help in this.
    Thanks and Regards,
    Ashwani Kr Sharma

    Hi ,
    Use
    WDWebResource.getPublicCachedWebResource(byte[] webResource,
                                                                  WDWebResourceType resourceType,
                                                                  WDScopeType scopeType,
                                                                  WDDeployableObjectPart deployableObjectpart,
                                                                  String key)
    Regards
    Bharathwaj

  • Displaying an image on a form in PalmOS

    We have created an application in java and have implemented using WTK and PalmOS..
    How do we importan image on a form?
    We have stored the image as "/img.PNG" in the "res" folder..
    the image is being displayed in WTK but not in PalmOS.. its giving an IO exception..
    are there any settings in PalmOS that need to be changed for displaying the image?
    please help..
    thanx..

    Try this (for MIDP 2.0)
    Form f = new Form("Image");     
            try {
                 img = Image.createImage("/hello.png");            
            catch (java.io.IOException x) { }
         imgItem = new ImageItem("", img, ImageItem.LAYOUT_NEWLINE_AFTER | ImageItem.LAYOUT_CENTER, null);        
            f.append(imgItem);        Also check for the file extension means upper and lower case .PNG and .png are different

  • Images in web forms R6.0

    Leaving the client/server configuration and entering the true
    three-tier solution should be easy, says oracle.
    Then tell me how to
    "Create a container class extending then VBean"
    to invoke forms 6 to show a blob-stored jpg-file.
    Has anyone done it already ?
    I who only work with Developer tools and not yet have begun to
    master the mystery of java (read JDeveloper) are stranded as of
    now.
    null

    Found this somewhere on the web long back.
    Not tested, never really had to use blob
    create table demo
    ( id int primary key,
    theBlob blob
    create or replace directory my_files as '/export/home/tkyte/public_html';
    declare
    l_blob blob;
    l_bfile bfile;
    begin
    insert into demo values ( 1, empty_blob() )
    returning theBlob into l_blob;
    l_bfile := bfilename( 'MY_FILES', 'aria.gif' );
    dbms_lob.fileopen( l_bfile );
    dbms_lob.loadfromfile( l_blob, l_bfile,
    dbms_lob.getlength( l_bfile ) );
    dbms_lob.fileclose( l_bfile );
    end;
    Now here is the package that can retrieve the pdf (or anything for that
    matter. Just keep adding procedures that are named after the file type like
    .doc, .pdf, .xls and so on. Some browsers really want the extension in the URL
    to be "correct")
    create or replace package image_get
    as
    procedure gif( p_id in demo.id%type );
    end;
    create or replace package body image_get
    as
    procedure gif( p_id in demo.id%type )
    is
    l_lob blob;
    l_amt number default 30;
    l_off number default 1;
    l_raw raw(4096);
    begin
    select theBlob into l_lob
    from demo
    where id = p_id;
    -- make sure to change this for your type!
    owa_util.mime_header( 'image/gif' );
    begin
    loop
    dbms_lob.read( l_lob, l_amt, l_off, l_raw );
    -- it is vital to use htp.PRN to avoid
    -- spurious line feeds getting added to your
    -- document
    htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
    l_off := l_off+l_amt;
    l_amt := 4096;
    end loop;
    exception
    when no_data_found then
    NULL;
    end;
    end;
    end;
    /

  • Dynamic Text to be displayed as Image in Adobe Forms

    Hi ,
    I have a requirment to display dynamic text in the image format in the Adobe Form.
    I have tried using the Image field instead of text field.But could not solve the problem.
    kindly help me.
    Thanks.

    Hello,
    if you send a text into a text field to the print form, it looks like a paper print, you cannot tell where there is a picture and where is the text. So you don´t care about the image/ text problem. If you need to make difference between two for the user, you can put the text (your image) into a rectangle, use a background or anything like this.
    Why would the image make any difference?
    Otto

  • Problems in displaying an Image in PDF Form

    hi,
    I have to display a photo in the PDF form dynamically, hence i have a used an element of type <b>Image Field</b>, where the URL has to be passed to fetch the photo from the location. though all the bindings has been done, the photo is not displayed. please help me find the solution.
    Thanks and Regards
    Poojith M V

    Hi Poojith ,
    follow these steps;
    -Choose imagefield element on to adobe form
    -Right click select choose image ,Browse for the image from the local drive.
    -Select Ember image Data
    -Select Add to library ,save it
    Now drag the added image from library on to adobe form and use.
    Cheers
    Swathi
    Do offer pts;-)

  • Unable to display employee image in pdf forms from webdynpro?

    hi friends,
    i am using webdynpro application and ADOBE forms. i designed adobe form with 3 fields. IM_VORNA, IM_NACHN, IM_PHOTO.
    I created one interface of adobe form also with the 3 fields of which specified above.
    And i am using webdynpro application to get the details of emplyee by passing pernr.
    i created a view. in this, and i attached every thing interface context. And in methos tab, wddoinit method i wrote code like this...
    DATA pernrid TYPE PERNR-PERNR.  "tdobname.
      DATA temp TYPE c.
      DATA: p_connect_info TYPE TOAV0,
            wa_p_connect_info TYPE TOAV0,
            p_document_type TYPE TOAV0-RESERVE,
            exists TYPE c.
      DATA: url TYPE char255,
            turl TYPE string,
            turl1 TYPE xstring.
      DATA lo_nd_z_if_test_cv TYPE REF TO if_wd_context_node.
      DATA lo_el_z_if_test_cv TYPE REF TO if_wd_context_element.
      DATA ls_z_if_test_cv TYPE wd_this->element_z_if_test_cv.
    * navigate from <CONTEXT> to <Z_IF_TEST_CV> via lead selection
      lo_nd_z_if_test_cv = wd_context->get_child_node( name = wd_this->wdctx_z_if_test_cv ).
    * get element via lead selection
      lo_el_z_if_test_cv = lo_nd_z_if_test_cv->get_element(  ).
    * get all declared attributes
      lo_el_z_if_test_cv->get_static_attributes(
        IMPORTING
          static_attributes = ls_z_if_test_cv ).
    * *** Vorna and Nachn.
    ls_z_if_test_cv-im_vorna = 'shankar'.
    ls_z_if_test_cv-im_nachn = 'chamala'.
    ***pernr
      pernrid = '00000003'.
    CALL FUNCTION 'HR_IMAGE_EXISTS'
      EXPORTING
        P_PERNR                     = PERNRID
    *   P_TCLAS                     = 'A'
    *   P_BEGDA                     = '18000101'
    *   P_ENDDA                     = '99991231'
    IMPORTING
       P_EXISTS                    = exists
       P_CONNECT_INFO              = P_CONNECT_INFO
    EXCEPTIONS
       ERROR_CONNECTIONTABLE       = 1
       OTHERS                      = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
    CALL FUNCTION 'SCMS_DOC_URL_READ'
      EXPORTING
    *   MANDT                      = SY-MANDT
        STOR_CAT                   = SPACE
        CREP_ID                    = P_CONNECT_INFO-ARCHIV_ID
        DOC_ID                     = P_CONNECT_INFO-ARC_DOC_ID
    *   PHIO_ID                    =
       COMP_ID                    = 'DATA'
    *   SIGNATURE                  = 'X'
    *   SECURITY                   = ' '
    *   USE_LOCATION               = 'A'
    *   LOCATION                   = ' '
    *   HTTP_URL_ONLY              = ' '
       DP_URL_ONLY                = 'X'
    *   LIFETIME                   = ' '
    *   NO_CACHE                   = ' '
    *   EXPIRATION                 =
    *   PDF_MODE                   = ' '
    *   URL_EXTENTION              = ' '
    *   FORCE_GET                  = ' '
    IMPORTING
       URL                        = URL
    EXCEPTIONS
       ERROR_CONFIG               = 1
       ERROR_PARAMETER            = 2
       ERROR_SIGNATURE            = 3
       HTTP_NOT_SUPPORTED         = 4
       DOCGET_NOT_SUPPORTED       = 5
       NOT_ACCESSABLE             = 6
       DATA_PROVIDER_ERROR        = 7
       TREE_NOT_SUPPORTED         = 8
       NOT_SUPPORTED              = 9
       OTHERS                     = 10
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    turl = url.
    CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
      EXPORTING
    *   CODEPAGE_TO            = '8500'
        UNICODE_STRING         = turl
    *   OUT_LEN                =
    IMPORTING
       XSTRING_STREAM         = turl1
    EXCEPTIONS
       INVALID_CODEPAGE       = 1
       INVALID_STRING         = 2
       OTHERS                 = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ls_z_if_test_cv-im_photo = turl1.
    *** Get the Photographs 
    *CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    *  EXPORTING
    *    p_object       = 'GRAPHICS'
    *    p_name         = pernrid
    *    p_id           = 'BMAP'
    *    p_btype        = 'BCOL'
    *  receiving
    *    p_bmp          = ls_z_if_test_cv-im_photo
    *  EXCEPTIONS
    *    not_found      = 1
    *    internal_error = 2
    *    others         = 3
    *IF sy-subrc EQ 0.
    **  MOVE 'y' TO temp.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    *** Send the values back to the node
      lo_el_z_if_test_cv->set_static_attributes(
        EXPORTING
          static_attributes = ls_z_if_test_cv ).
    But here the problem is when i executed this application i am able to see the VORNA and NACHN fields in ADOBE Form. But the employee photo is not appearing in adobe form.
    Here employee photo i amretreving from archive link.
    Even i set the Imagefield property URL in Adobe forms.  i.e $record.IM_PHOTO.
    Any solutions regarding this...
    Regards,
    Shankar.

    Hi Shankar,
    according to the sap documentation (inserting a graphic), I could imagine the following problems
    1.) image file type is not supported (-> "see the online help in Adobe LiveCycle Designer under Defining Object Properties ® Image Fields ® About Image Fields" )
    when you use "Graphic Reference"
    2.) url could not be accessed.(-> "This means that you may have to configure appropriate access rights for Adobe Document Services (ADS)" ).
    Maybe this will help you finding the problem.
    Regards,
    Andreas

  • Safari Not Displaying All Images On Web Page

    When I look at a web page in Safari on my iPhone 3GS, not all of the images on the page load. Instead, I see little blue squares with question marks in them. However, if I look at the same web page on an iPhone 4, the images DO load. Why is this happening?
    Here are two screenshots to prove my point:
    iPhone 3GS
    iPhone 4

    Settings>Safari>Javascript On maybe?
    May find an answer here as well:
    http://manuals.info.apple.com/enUS/iPhone_iOS4_UserGuide.pdf

  • Displaying .ICO images in web browser

    I have a need to display .ICO icon images within the browser. I'm finding that in MSIE they don't always work and in Firefox they display but they are very blurred. I'm wondering if anybody is aware of anything built into CF that might fix this problem? Possibly a flash component?
    CF never ceases to amaze me, it always has a tag or component for every issue, but this one might be a problem!
    Thanks
    Mark

    ACS LLC wrote:
     CF never ceases to amaze me, it always has a tag or component for every issue, but this one might be a problem!  
    Thanks
    Mark
    Yeah, since CF is a server technology and "I have a need to display .ICO icon images within the browser." kind of indicates that you are dealing with a client issue.
    I am fairly confidant that the <cfimage...> tag is not going to do anything with the .ico format.  At least I have never heard about it doing so.  It is possible that there is java code out there that could do something with the ico format that will make it work better.  If so, it should be pretty easy to inovke the java from within your CFML.

  • Display Image in a Form

    Hey guys,
    Had a question regarding displaying an image in a form. In the page, User enters all the details in the form and should be able to upload an image file
    and also display a small size of the image uploaded in the same page.
    Thank you for your help, really appreciate it
    Jesh

    Roel,
    I have tried this example, but when I want to resize the image with the help of the link given at the end
    Note: To modify the display attributes of the image (i.e. to make it smaller), you need to use the programmic way of including images. See the documentation at (http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDICGDA)
    this link to modify the image doesnt work, it says Error Page.
    Any Suggestions ? ? ?
    Thank You
    Jesh

Maybe you are looking for

  • Problem with photos not saving in camera roll

    When I went to take my pictures from my iphone onto my laptop today I discovered I had 2 folders, 100apple and 101apple. I assumed this was due to the fact that I had reached over 1000 photos, and the numbers have rolled back to 001, hence the new fo

  • Problem regarding the creation of Table using CSS.

    Hi , Here I have a Problem regarding the creation of Table using CSS. In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties: width:900px; height : auto,

  • Financial Reporting 9.1.3 - Modifying Email Body text of cmd line scheduled

    I would like to add text to the body of the command line scheduled email that is sent out using Financial Reporting. Ideally I would like to suppress the text that is automatically added to the body of the email by Financial Reporting as well. I have

  • Don't able to download file to local using window pop-up with IE

    Dear all, I am working in web dynpro for java, i want to download file to local using window pop-up , here is my code : IWDResource resource = WDResourceFactory.createResource(blacklistData.getBytes(), allblFilename, WDWebResourceType.TXT); IWDWindow

  • Newbie.. is 'backup database plus archivelog...' needed?

    On my Oracle 11.1, I'm performing full backup with command: backup incremental level 0 database plus archivelog delete input tag LEVEL_0_INC;Since this database is not in flashback mode, I'm wondering is it needed to backup archivelogs together with