Displaying images through forms6 stored as bfile

The image is stored in a database as bfile datatype. How the image can be displayed using forms6?

Two columns table (varchar2 and bfile)
wizard to create form on the two columns:
when I compile and run, going in query mode
I receive oracle error
22288 (Serevr is 8.1.6.1 on linux kernel 2.2.14)
Via sqlplus accessing to the bfile I encounter no problem.
If in forms I select help--> display error
I can see that it attempts to make a select on the bfile column.
How to debug?
Thanks in advance.
null

Similar Messages

  • Displaying Images through Servlets

    I am using Servletrunner utility to run my servlets. How can I display Images along with other HTML text, to the Browsers through Servlets?

    Print out the <img> tag. The URL you use may in turn reference another servlet that produces an image. You can look at the Java2D (and perhaps Java3D, if you want 3D images) to help you produce the images.

  • How to display image through script

    Hi,
    In my template I am passing image path through xml, I need to display this image on XDP template.
    Please help for the same,
    I tried
    ImageField1.resolveNode("value.#image").href = "C:\\logo.jpg";
    Image1.resolveNode("value.#image").url=".\logo.jpg";
    But it doesn't help, Is I am doing any mistake or is there any other way.
    Thanks,
    Abhijit

    Got the solution,
    first need to convert the imge into base 64 encoded string, and then pass it through xml.
    do the binding with imageField, and make it readonly.
    To covert image into base4 use below code
    //convert image file into byte array this case - buf
    String base64EncodedStr =
    new sun.misc.BASE64Encoder().encode(buf);

  • Flip/rotate Image which is stored as BFILE in DB

    Experts,
    Can anyone please help to achieve flipping and rotating an image. Is this can be achieved with the available adf components?. Please let me know in detail.Am using Jdeveloper 11.1.1.6.0
    Thanks in advance

    Hallo John,
    yes, you can use the Image UI element.
    Further you have to create a String for the URL. Implement like as follows:
    IWDCachedWebResource cachedResource = null;
    String imgUrl = null;
    WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
    IWDModifiableBinaryType binaryType =
                   (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
    WDWebResourceType type = binaryType.getMimeType();
    byte[] file = wdContext.currentXYElement().getPicDB();
    if (file != null)
    cachedResource = WDWebResource.getWebResource(file, type);
    try
    imgUrl = cachedResource.getURL();
    catch (WDURLException e)
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
                        msgMgr.reportException(e.getLocalizedMessage(), true);
    I hope it will help you.
    Regards,
    Silvia

  • How I can display images as table data?

    Dear project Marvel,
    I would like to display images as one of table data, but I do not know how to easily store image data into tables using htmldb and whether I can display the stored images. Does anyone knows how I can store/display images using htmldb? If I cannot do this easily then displaying image (which is stored somewhere else but) just looks like one of columns also fine to me.
    Thanks in advance,
    Rui

    you can show those images inline in your report region if you call our "p" procedure in an image tag. so the example above has you creating a table that you then join to the wwv_flow_files view with a query like...
    select htf.anchor('p?n='||f.id, f.filename) name,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...clicking on the links in the first column would return a page that just showed the associated image. if changed that anchor tag to an image one like so...
    select '&lt;img src="p?n=' || f.id ||'&gt;' the_image,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...your images would then appear inline as opposed to on a separate page.
    [Edited by: rmattama on Sep 25, 2003 1:22 PM]
    i'm not sure how, but i'd earlier posted an incomplete answer to rui's question. i've fixed some of the above and added this below...
    just fixed the html above so it renders correctly in this forum. sorry i didn't see that earlier. also, i'm not sure where the rest of my post went, but rui had also wanted to know what the wwv_flow_files was. that's a view to the table we use to store uploaded BLOBs like images, css's, and stylesheets. since you can only identify one document table in your DAD configuration, we give you this view to allow you access to that doc table that HTML DB owns.
    fyi,
    raj

  • Displaying images stored in SQL Server

    Is there someway of displaying images stored within SQL
    Server. Is FDS required? Prefer a method to display images without
    using FDS; Web Service would be okay if that can work

    I do that sort of thing using PHP and mySQL the binary part
    of the image is stored in a BLOB field (Binary Large OBject) along
    the rest of the information necessary for the http headers (e.g.
    mime type, file name, file size) being staored in their own fields.
    That info is then used to build the file using PHP. The PHP
    file contains a mySQL query whos result is echoed with the
    appropriate headers. The URL points at the PHP file rather than at
    any saved image.
    Here's the php:
    <?
    # display_imagebank_file.php
    # Note: the ID is passed through the url e.g.
    # this_files_name.php?id=1
    # connect to mysql database
    mysql_connect('HOST', 'USERNAME', 'PASSWORD');
    mysql_select_db('DATABASE');
    # run a query to get the file information
    $query = mysql_query("SELECT FileName, MimeType, FileSize,
    FileContents FROM blobTable WHERE ID='$id'");
    # perform an error check
    if(mysql_num_rows($query)==1){
    $fileName = mysql_result($query,0,0);
    $fileType = mysql_result($query,0,1);
    $fileSize = mysql_result($query,0,2);
    $fileContents = mysql_result($query,0,3);
    header("Content-type: $fileType");
    header("Content-length: $fileSize");
    header("Content-Disposition: inline; filename=$fileName");
    header("Content-Description: from imagebank");
    header("Connection: close");
    echo $fileContents;
    }else{
    $numRows = mysql_num_rows($query);
    echo "File not found <br>";
    echo $numRows;
    echo " is the number of rows returned for id = ";
    echo $ID;
    ?>
    Hope that helps
    Phil

  • Display Images stored on filesystem

    Hello,
    I have stored photos (JPEG images) in my OS filesystem and trying to create album to view them using BFILE datatype and stored procedure. I would like to diaply one photo on each page withlinks to next and previous photos. I was able to make this working but have still following issues.
    - It only shows image for first row. For other rows, the strored procedure doesn't even run.
    - The 'Layout and pagination' for report displays more rows on each page, even if I specify "Number of Rows" as 1.
    Could you help me fix these issues? Also, if you have better way to do it, I am willing to try.
    Thanks.
    Following are more details of my setup.
    Using Oracle Application Express 3.1.1.00.09 with Oracle 11g on RedHat server.
    Table description:
    SQL> desc swiss_photos
    Name Null? Type
    PHOTO_ID NOT NULL NUMBER
    PHOTO BINARY FILE LOB
    FILENAME VARCHAR2(255)
    MIMETYPE VARCHAR2(255)
    UPDATE_DATE DATE
    DESCRIPTION VARCHAR2(400)
    Sample data in table:
    SQL> select photo_id, photo, filename from swiss_photos
    PHOTO_ID PHOTO FILENAME
    3 bfilename('PHOTO_DIR', '2008-0 2008-05-16/img_2101.jpg
    5-16/img_2101.jpg')
    2 bfilename('PHOTO_DIR', '2008_0 2008_05_16/img_2100.jpg
    5_16/img_2100.jpg')
    Proceduer to display image:
    SQL> select text from user_source where name='DISPLAY_EASY_IMAGE' order by line;
    TEXT
    procedure display_easy_image( p_id number ) as
    s_mime_type varchar2(48);
    n_length number;
    s_filename varchar2(400);
    bfile_loc bfile;
    begin
    s_mime_type := 'image/jpeg';
    --INSERT code to verify if procedure gets executed
    insert into test_dei values (p_id);
    commit;
    select mimetype, dbms_lob.getlength(photo), filename, photo
    into s_mime_type, n_length, s_filename, bfile_loc
    from swiss_photos
    where photo_id = p_id;
    owa_util.mime_header(nvl(s_mime_type,'application/octet'), FALSE );
    htp.p( 'Content-length: ' || n_length );
    htp.p( 'Content-Disposition: filename="' || s_filename || '"' );
    owa_util.http_header_close;
    wpg_docload.download_file(bfile_loc);
    end display_easy_image;
    HTML expression of "PHOTO_ID" column for report:
    <img src="#OWNER#.display_easy_image?p_id=#PHOTO_ID#" width="700" height="700" />

    Hello,
    I have stored photos (JPEG images) in my OS filesystem and trying to create album to view them using BFILE datatype and stored procedure. I would like to diaply one photo on each page withlinks to next and previous photos. I was able to make this working but have still following issues.
    - It only shows image for first row. For other rows, the strored procedure doesn't even run.
    - The 'Layout and pagination' for report displays more rows on each page, even if I specify "Number of Rows" as 1.
    Could you help me fix these issues? Also, if you have better way to do it, I am willing to try.
    Thanks.
    Following are more details of my setup.
    Using Oracle Application Express 3.1.1.00.09 with Oracle 11g on RedHat server.
    Table description:
    SQL> desc swiss_photos
    Name Null? Type
    PHOTO_ID NOT NULL NUMBER
    PHOTO BINARY FILE LOB
    FILENAME VARCHAR2(255)
    MIMETYPE VARCHAR2(255)
    UPDATE_DATE DATE
    DESCRIPTION VARCHAR2(400)
    Sample data in table:
    SQL> select photo_id, photo, filename from swiss_photos
    PHOTO_ID PHOTO FILENAME
    3 bfilename('PHOTO_DIR', '2008-0 2008-05-16/img_2101.jpg
    5-16/img_2101.jpg')
    2 bfilename('PHOTO_DIR', '2008_0 2008_05_16/img_2100.jpg
    5_16/img_2100.jpg')
    Proceduer to display image:
    SQL> select text from user_source where name='DISPLAY_EASY_IMAGE' order by line;
    TEXT
    procedure display_easy_image( p_id number ) as
    s_mime_type varchar2(48);
    n_length number;
    s_filename varchar2(400);
    bfile_loc bfile;
    begin
    s_mime_type := 'image/jpeg';
    --INSERT code to verify if procedure gets executed
    insert into test_dei values (p_id);
    commit;
    select mimetype, dbms_lob.getlength(photo), filename, photo
    into s_mime_type, n_length, s_filename, bfile_loc
    from swiss_photos
    where photo_id = p_id;
    owa_util.mime_header(nvl(s_mime_type,'application/octet'), FALSE );
    htp.p( 'Content-length: ' || n_length );
    htp.p( 'Content-Disposition: filename="' || s_filename || '"' );
    owa_util.http_header_close;
    wpg_docload.download_file(bfile_loc);
    end display_easy_image;
    HTML expression of "PHOTO_ID" column for report:
    <img src="#OWNER#.display_easy_image?p_id=#PHOTO_ID#" width="700" height="700" />

  • Displaying images that are accessed through URL

    Hi,
    I have trouble displaying images that are accessed through URLs in my report.
    If I call the URL directly in the Browser the Image can be opened without problems.
    The images can be accessed with an anonymous access.
    When I deploy the report or in the Preview of Visual Studio I get the following message:
    [rsWarningFetchingExternalImages] Images with external URL references will not display if the report is published to a report server without an UnattendedExecutionAccount or the target image(s) are not enabled for anonymous access.
    In Layout View of Visual Studio the image is showen correctly.
    The Images are stored on a Solaris maschine with WebSphere 6.0 as WebServer.
    Any ideas?
    Thank you.
    Frank
     

     Rain3 wrote:
    * Create a new IIS Virtual Directory pointing to the share:
    ** Open IIS Manager on the reporting server (eg. REPORTSERVER ):
    ** Create a new Virtual Directory (Web Sites --> Default Web Site --> New --> Virtual Directory)
    ** In the Alias prompt, type some name (eg. Pics) and in the Path prompt, specify \\SERVER\imageshare . Other options should be left default.
    * When designing reports, use "http://REPORTSERVER/Pics/somepicture.jpg" as the "Value" property for images.
    I have followed these steps but I still can not get the images to display.
    Our reportserver resides in the directory of another website rather than the default site.  I would assume that I would still follow the same procedure that you have listed but it did not help.
    Does anyone have any other recommendations?

  • Report - Unable to display image stored on External server

    Hi
    I need to display image on report that is on different instance for that i had put a formula column (in report 10g) and for that coloum i made file format as image and read from file as Yes and giving it the URL of Image stored on different server . but at run time for PDF output i am getting error like REP-1295: Data format of column 'CF_1' is unsupported
    Please help me , Thx in advance.
    Ranga

    From the documentation:
    URL Reference
    1.Insert a dummy image in your template.
    2.In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    Element Reference from XML File
    1.Insert a dummy image in your template.
    2.In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    You can also build a URL based on multiple elements at runtime. Just use the concat function to build the URL string. For example:
    url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}
    where SERVER, IMAGE_DIR, and IMAGE_FILE are element names from your XML file that hold the values to construct the URL.
    This method can also be used with the OA_MEDIA reference as follows:
    url:{concat('${OA_MEDIA}','/',IMAGE_FILE)}
    Edited by: stevencallan on Feb 13, 2009 3:50 PM

  • Report - Not able to display image stored on External server or internet

    Hi
    I need to display image on report that is on different instance for that i had put a formula column (in report 10g) and for that coloum i made file format as image and read from file as Yes and giving it the URL of Image stored on different server . but at run time for PDF output i am getting error like REP-1295: Data format of column 'CF_1' is unsupported
    Please help me , Thx in advance.
    Ranga

    Hi,
    I've got the same problem.
    Did you find any solution?
    Thank you
    Davide

  • Problem in displaying images stored in Blob variable

    Hi all,
    I have a requirement where i need to retrieve the image stored in Blob variable in DB and display the image in JSP page.
    I have written the below code to achieve this, it works fine
    In JSP, I am calling a action in the <img tag
    <img src='downloadPhoto.page?method=getPhotoInBytes&accessoryModelPictures.id.accessoryNumber=${photo.id.accessoryNumber}/> In my controller class
    InputStream inputStream=accessoryPicturesLOB.getPicture().getBinaryStream();
    byte[] theBytes = new byte[inputStream.available()];
    inputStream.read(theBytes);
    response.setContentType("image/jpg");
    response.getOutputStream().write(theBytes);But the problem is, *if i right click on the image and select save picture as option i get a error saying "The system cannot find the specified file "*
    Can you please tell me what is wrong in my approach/code
    Is there any better approach to display image that is store in Blob variable ?
    Please help on this.
    Thanks in advance.

    You need at least to set the filename in the content disposition header.

  • Display Images stored in KM in a random animated way

    Hello Experts!
    I need to do in the portal a frame with 4 diferents images (difents size of images) and the images will be stored in KM folder under a taxonomy. In each folder may be more than 1 image and I need to display them animated in a style similar to that of the iTunes Music Store. How can i do that?
    Thanks!
    Tzitzi

    Hi Tzitzi,
    The KM navigation iView approach seems a lil too complicated. You can try to simulate the same using the JSP approach which I suggested. For the sake of simplicity, lets assume that the images are now being stored in the jsp component instead of reading from the KM. You can later replace the code to fetch the items from KM instead.
    The steps are as follows:
    1. Create a Portal application 'BannerRotatorApp' and within it create a JSPDynPageComponent 'BannerRotatorComp'.
    2. Under dist->scripts, download and copy the two javascript files available on the link [http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm], namely fadeslideshow.js and jquery.min.js.
    3. For now, places all the images you want in the slideshow under dist->images. Name them as img1, img2 and so on.....
    4. Simply copy and paste the following code in the JSP file of the banner rotator comp
    6. When you run the application, you would get the desired effect. But as I said, the initial code where I read the images from the component itself, could be changed to read the images from the taxonomy in the KM. But I hope you got the gist of it.
    Regards,
    Prathamesh
    Edited by: prathamesh dalvi on Mar 25, 2010 1:22 PM
    Edited by: prathamesh dalvi on Mar 25, 2010 1:24 PM
    Edited by: prathamesh dalvi on Mar 25, 2010 1:28 PM
    Edited by: prathamesh dalvi on Mar 25, 2010 1:29 PM

  • Alternative method for displaying images blobs stored in DB

    I am trying to use an Application Process as a means to displaying images stored in BLOB columns in my table. And it works except for one problem. The code for my on-demand Application Process is below (the name of the application process is OUTPUT_IMAGE):
    DECLARE
    l_mime VARCHAR2(255);
    l_length NUMBER;
    l_file_name VARCHAR2(2000);
    lob_loc BLOB;
    BEGIN
    SELECT photo_mime_type,
    photo_blob,
    photo_filename,
    dbms_lob.getlength(photo_blob)
    INTO l_mime,
    lob_loc,
    l_file_name,
    l_length
    FROM persons
    WHERE id = <b>260</b>;
    owa_util.mime_header(nvl(l_mime,'application/octet'), FALSE);
    htp.p('Content-length: ' || l_length);
    htp.p('Content-Disposition: filename="' || l_file_name || '"');
    owa_util.http_header_close;
    wpg_docload.download_file(lob_loc);
    END;
    I can then create HTML like:
    &lt;img src="f?p=[my_app_id]:0:[the_session_id]:APPLICATION_PROCESS=OUTPUT_IMAGE"&gt;
    Which works nicely.
    The question/problem is: How can I pass the ID of the record (whose BLOB I want to display) to the Application Process? (In the code above you'll see the value of <b>260</b> is currently hard coded). I thought about tacking on something like "&my_id=xxx' to the end of the URL but doing so prevents the Application Process from even running.<BR/><BR/>
    All comments/suggestions much appreciated,<BR/><BR/>
    Thanks,
    <BR/>
    Andy

    Andrew,
    The URL for an Application Process uses the standard f?p syntax.
    Try passing your value like this:
    < img src="f?p=[my_app_id]:0:[the_session_id]:APPLICATION_PROCESS=OUTPUT_IMAGE:NO::MY_ID:[the value to send]"> You would need to have an item called MY_ID.
    Your query could then refer to it as
    WHERE id = :MY_ID;
    Doug

  • Forms 6i - display into image item picture stored in blob type on database

    hi to all
    i searched on this forum but in don't found solution my problem.
    I created table with a column blob and i design form that insert and display image stored in database ( oracle 9i )
    i used image item type with block database based
    my version forms is
    Forms [32 Bit] Version 6.0.8.13.0 (Production)
    if i define column table like "long raw" it worked but i used blob i insert but i don't display image
    error is:
    ORA-00932: inconsistent datatypes: expected got
    thanks a lot to all
    bye

    I know, that the false forms-version (patch) gives you this errors. Try a newer patchset. For example patch 13-15 (for 9i), or 17 (10g rel. 1)

  • Display image stored @ content managemenbt

    Hi,
    this is regarding to displaying image stored @ content management, using <html:img> tag in .jsp
    under a node i am uploading two images. (node having two upload options)
    in .jsp i am using <html:img> tag to display the images.
    i tried to display both the images. But the first image what i upload is not showing. what i upload second is displaying.
    pls let me know how to resolve this.
    Thanks.

    You need to access binary property values separately from the node. In 9.2 the API is accessed via INodeManager.getStream(). Alternatively you can take advantage of the tags we have for this as well. Take a look here on edocs:
    http://e-docs.bea.com/wlp/docs92/cm/developCM.html
    -Ryan

Maybe you are looking for

  • How to Change Material number in Accouting Document on ML81N

    Hi, I have a requirement to change the Material Number based on the User custom data from the Custom Tab. Since Service PO does not contains any material number, so based on the custom tab, we are trying to update the same. Using ML81N T-Code. Please

  • Please Help!! Error in document : BKPFF $ DEVCLNT

    Hi All Gurus, I am trying to use BAPI - BAPI_ACC_DOCUMENT_POST to post to FB50. I am using the below paramaters - DOCUMENTHEADER          TABLES        ACCOUNTGL                      CURRENCYAMOUNT RETURN. But I am getting the error -   Error in docu

  • Why is there extra white space after exporting to JPEG?

    After exporting an *.ai file to jpeg using  150 ppi and 5 for compression, I have extra white space below the artwork. This has happened in two files after exporting.

  • Help with itunes/ipod

    My iTunes is not working properly. It is not showing that my iPod is connected. My iPod continues to show the Do not disconnect display. How do I eject it if it does not show up on itunes? If I have accidently disconnected it while it was showing the

  • Sony Camcorder not recognized on Macbook

    I have a sony handycam dcr hc36 model. I am trying to connect it to my Macbook using a USB cable (that's what I have with the cam). The camcorder recognized that it was connected to the system and prompted me to select the option 'Stream Video'. Howe