Displaying images in a HTMLDB Report

I have a procedure(pdt_image_display) that accepts a imageid and returns a blob content and mime_type value in the select into clause.
The procedure is called through a SQL Report using the following image src tag
SELECT <col1>,
'<img src="#OWNER#.pdt_image_display?p_image_id=' || nvl(<imageidcolumn>,0) || '" height="50" width="50" />' img
from <Image Table >
The report when run couldnt display the images..
Can anyone help me to display an image in a htmldb report
Thankyou
Message was edited by:
user523354

I have done this many times. Eventually you miss the right syntax or you didn't grant execute to your procedure to public. Here is one of my examples you may use to compare with yours:
SELECT NULL download, related_documents, subject,
       || get_category_type (category_type)
       || category_type,
       || get_subcategory_type (subcategory_type)
       || subcategory_type,
       get_subcategory_description (subcategory_type) description,
       '<im g src="#OWNER#.marketing_image_display?p_image_id='
       || NVL (ID, 0)
       || '" height="'
       || NVL (display_height, 100)
       || '" width="'
       || NVL (display_width, 70)
       || '" />' img,
       SUBSTR (get_subcategory_type (subcategory_type), -1, 1) series_type,
       sort_flag
  FROM marketing_images
WHERE NVL (TO_CHAR (category_type), '%') LIKE
          CASE
             WHEN TO_CHAR (:p4_category_type) = '-1'
                THEN '%'
             ELSE :p4_category_type
          END
   AND NVL (TO_CHAR (subcategory_type), '%') LIKE
          CASE
             WHEN TO_CHAR (:p4_subcategory_type) = '-1'
                THEN '%'
             ELSE :p4_subcategory_type
          END
   AND LANGUAGE = :p0_choose_your_language</br>
Denes Kubicek

Similar Messages

  • Display image file - BLOB on Report

    Hello there,
    Has anyone knew how to display an image file (BLOB) on Report using Application Express?
    You prompt reply would be appreciated.

    Once htmldb.oracle.com is available again, you may have a look in my demo application:
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    In the tab section II, you will find an image display example and the corresponding
    procedure.
    Denes Kubicek

  • Display image data in a report

    Hello.
    I have a table with a BLOB column that stores images.
    I want to run a report and display the images.
    Say my blob column is named IMAGE_DATA.
    I want my report definition to be simply SELECT IMAGE_DATA FROM T; and I want the page to display the images in one neat column, one underneath another.
    I have managed to build a report that in the IMAGE_DATA column shows a hyperlink called "download" and if I click on it, it takes me to a page displaying the image file. (I use dbms_lob.getlength("IMAGE_DATA") for the report and then "DOWNLOAD:T:IMAGE_DATA:ID" in the number/date format for the report attributes)
    But that's not what I want.
    I want the report to list not the hyperlinks all saying "download" in the IMAGE_DATA column that, if clicked on, would take me to the images. I want the report to display the actual images in the report itself.
    Is it possible? If so, what's the magic sause recipie?
    Thank You
    Boris

    Hello Boris,
    You can use something like
    decode(nvl(dbms_lob.getlength(p.product_image),0),0,null,'<img src="'||apex_util.get_blob_file_src('P8_PRODUCT_IMAGE',p.product_id)||'" height="75" width="75" />') img
    in your select statement.
    See the documentation and/or [this blog post|http://dgielis.blogspot.com/2008/07/show-blob-of-other-table-in-apex-form.html].
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Displaying image from database in report

    I need to include a picture (company logo) in numerous reports. This logo will be stored in an MS SQL Image field in a table (this bit I have already sorted out).
    What I'm wondering is, what is the best way to retrieve this image from the database? Do I just include it in the view the report runs off? I'm hesitant to do this, as the view may return back hundreds of records, which means (I think) it will be sending the image along with it hundreds in time.
    In short:
    1) What is the best way to pass an image to a report.
    2) If I include the Image field in a view which returns back hundreds of line, will the image be returned also hundreds of time, causing network congestion/performance issues?
    3) If so (2), is there a way of sending the image only once, no matter how many rows are in the returned view?
    Thanks.

    Hi Shanon,
    We can display the image by making it a local copy on your machine.
    If it is possible to  get the image saved on local copy.
    If we place the image in detail section then it would return one record.
    As the image is from Database, so it would hit the database very time when you refresh the report and place it in Report Header or report fotter.
    So, place your logo as an OLE object in report and would reduce processing time.
    Regards,
    Naveen.

  • Displaying images in a ColdFusion Report (cfr)

    I am playing around with graphs and reports. The requirement
    is to be able to produce reports in PDF and/or RTF with graphs
    included. Overall cfdocument may be my solution but it does not
    have the rtf option.
    One solution I was testing was using WebChart3D code to
    create the images and then passing the location of the images into
    a Cold Fusion Report for display. I did this by creating a simply
    query with one column holding the location of the three graphs I
    have. All the report does is display a single chart per page.*
    This works great on my XP laptop but when I moved it to our
    linux box I get an error saying “No such file or
    directory”. I have checked both directory and file are there.
    And yes it lists the correct directory and file (case matched). So
    I am wondering if it is a permissions issue. Any ideas?
    Thanks,
    Joel
    * Yes I know Report Builder allows you to create graphs.
    However, we have a requirement for the graphs themselves that so
    far I have not been able to meet using the Report Builder graphing
    tool even though it is quite good.

    Don't know if this answers your issue with report builder,
    but with cfdocument, apparently ColdFusion engine must be able to
    resolve embedded images and files fully. Maybe it's also the case
    with report builder? The fix involves simple host file change. See
    this post on CFTalk:
    http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:46071
    Cheers,
    Kris

  • Displaying images in forms and reports

    Hello,
    I would like to upload images into a table and then display them in a form or a report along with other details with that image. In essence I want another column along with a current table and that colomn should be able to store images.
    I have not used images in Oracle before so blobs are new, but if you could please tell me how to go about finding the answer.
    thanks

    This is not the correct forum form from related queries. Please raise your question in appropriate forum.
    --Mukul                                                                                                                                                                                                                                                                       

  • How to add Image to Web Document Report?

    Hi,
    I need to add Logo in my report.  Please share how to achieve this, and are there any constrains regarding picture format, or placement of the image or report transformation(to XL/PDF) or printing.
    Thanks in advance,
    -Vishi

    You simply embed the logo in your report however It does not gets exported when the report in exported in Excel but works in PDF.
    You can fine complete details and workaround for image in excel at below link.
    http://www.dallasmarks.org/blog/2009/02/tips-and-tricks-displaying-images-on-web-intelligence-reports/
    --Kuldeep

  • Images in a interacitve report

    Hello,
    one question:
    Is it possible to display a image in a interative report?
    I did this already in a classic report by using:
    CASE
    when ("Number" > 1) then '<img src="#WORKSPACE_IMAGES#red.JPG" alt="RED">'
    when ("Number" <= 1) then '<img src="#WORKSPACE_IMAGES#green.jpg" alt="GREEN">' end as "Trafficlight"
    This worked perfect in the classic report. But when I use this for the interactive report, it displays just the text, ("img src.... ") but shows no image.
    Maybe the interactive report can't show any images?
    Thanks for your help,
    LISA :-)

    Hi Lisa,
    Yes it is possible to display images in the Interactive Report. If you are just seeing the text "img src..." check the Report Attributes to see if the 'Display Text As' is set to. It should be Standard Report Column.
    Regards
    Paul

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Display image in classical report

    Experts,
    Please share how to display image stored in SO10 in to a  classical report??

    Hi
    check this
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    FORM TOP-OF-PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEADING[]
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
    ENDFORM. "TOP-OF-PAGE
    Here 'ENJOYSAP_LOGO' will replace by ur created logo.
    Refer this link
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
    http://www.sap-img.com/abap/alv-logo.htm
    http://www.sap-img.com/fu002.htm
    Re: Logo on Login screen
    Re: To change image into main menu of sap
    Regards
    Anji

  • Display Image in Report

    Hi,
    I want to display image link in one of the columns in report.
    ex: if i click that image it should go to google maps.
    I stored the image in /res/s_protal/image.jpg and also in oc4j.
    I know to fmap to show it only once.
    but i want to reflect it in all the rows of a column.
    Things i tried:
    Stored in the same machine took the ip addres and prot and given as below it was working.
    But if i move it to other machines then it getting failed so again i want to update the machine ip.
    http://225.225.225.225:9704/analytics/res/s_proact/images/images.jpg
    Is there any possible way to give some common syntax so that the corresponding machine ip will be pointed once the
    report moved to different machines.
    Thanks,
    satheesh

    Hi Santeesh,
    I just saw your post and I thought I'd ask you with my query:
    I want to add some pop-up info on some of the data when the user hover on it. have you
    got a clue what do I need to do for that?
    Cheers,
    Yonatan

  • Display Image in Report Colum,  ORA-06502: PL/SQL whe column format is set

    Hi @all
    i created a small table
    CREATE TABLE my_sal201 (
    grafikdid VARCHAR2(38) NULL,
    grafik BLOB NULL,
    mimetype VARCHAR2(255) NULL
    then i inserted one column with a page process
    BEGIN
    IF (:p6_filename IS NOT NULL)
    THEN
    INSERT INTO my_sal201
    (grafikdid, grafik, mimetype)
    SELECT meb_ora.mkdid(), blob_content, 'image/gif'
    FROM wwv_flow_files
    WHERE NAME = :p6_filename;
    DELETE wwv_flow_files
    WHERE NAME = :p6_filename;
    :p6_filename := NULL;
    END IF;
    END;
    after that i want to show the columns and the image in a report. so i created a report in a new region quite similar to the example in the obe
    it works fine, the image columns is shown as "[datatype]"
    whenever i change the format of the image colum of the report to
    DOWNLOAD:MY_SAL201:GRAFIK:GRAFIKDID::::::inline:Herunterladen
    (just one example, IMAGE:... does not work as well)
    no more rows are shown but the error h3. "ORA-06502: PL/SQL: numerischer oder Wertefehler: Fehler beim Konvertieren von Zeichen zu Zahl"
    what did i do wrong?
    gretz
    peter

    i'm to silly to work with images :-ß
    i did copy ur example to another app on http://apex.oracle.com/pls/otn/. fine->igames are shown.
    on a new page in my local app, i did exactly the same (create a table, procedure, ect) it does not work.
    rows are shown inthe report, but no images, instead the icon for a broken/missing image is displayed.
    i tried to debug using firebug:
    in the sample app on otn, when i point the mnouse over the procedure call, the image appears in a tool-tip
    in my app, the code is quite simmilar, nothing happens. no icon
    >
    <img width="50" height="50" src="WMF_GL_INTMAN001.DISPLAY_IMAGE?inID=1"/>
    >
    help!!!
    maybe this is important: i'm using apex 3.2.0.00.27 on db version 11g
    Edited by: yeti on 28.08.2009 13:37

  • Display image in report from BLOB

    Hi All,
    i have one requirement i.e
    i want to display image in a report base on condition
    like if id =1 then firest image, id = 2 then second image and id =3 then third image
    i have image in database in BOLB type
    i need to display in report based on that condition
    please help me this requirement is urgent
    reg,
    jell

    just create a query like this:
    select id, image_name, image
    from tablethen your XML output would be like this:
    <ROWSET>
         <ROW>
              <ID>1</ID>
              <IMAGE_NAME>kljkla</IMAGE_NAME>
              <IMAGE>Lots of characters that represents the BLOB</IMAGE>
         </ROW>
         <ROW>
              <ID>2</ID>
              <IMAGE_NAME>jdkwel</IMAGE_NAME>
              <IMAGE>Lots of characters that represents the BLOB</IMAGE>
         </ROW>
         <ROW>
              <ID>3</ID>
              <IMAGE_NAME>oled</IMAGE_NAME>
              <IMAGE>Lots of characters that represents the BLOB</IMAGE>
         </ROW>
         <ROW>
              <ID>4</ID>
              <IMAGE_NAME>mlish</IMAGE_NAME>
              <IMAGE>Lots of characters that represents the BLOB</IMAGE>
         </ROW>
    </ROWSET>in your RTF you put this:
    <fo:instream-foreign-object content-type="image/jpg" width="251.8pt" height="174.3pt" xdofo:alt="picture"><xsl:value-of select=".//IMAGE"/></fo:instream-foreign-object>the attributes width and height are optional

  • Display image in forms & reports developed on windows and deployed on Unix

    Hi,
    We are upgrading from Forms and reports 6i to forms10g.
    We need to insert image in forms and reports. Recompile and deploy on unix server.
    So can anyone let me know the exact steps to create jar file containing images, where to place the jar file.
    Corresponding folder, file and configuration changes required on windows and unix.
    Av.

    Hi Frank,
    thanks for the link it helped me in understanding how images work for forms.
    But my real concern is how this will work in reports?
    As we dont have any reportsweb.cfg nor any java path for reports?
    Can you help me in understanding how to embed image in reports that will be displayed even after porting the report on unix oas.
    Regards,
    Av.

  • Display image in report page but just a link if file is not an image

    Hello,
    I've been working on displaying an image in a report page but need to add some logic.
    I would like to be able to call the image using a Region Source of type SQL instead of the HTML Expression. The reason for this is because I need to use logic to determine if the file is an image or not and to determine wether to show a thumbnail or just a link. I did find a "GET_BLOB_FILE_SRC" Function on the internet that suggests that I could do this but I need some help in making it work in my application.
    Here it is as a Region Source of type SQL:
    SELECT ID,
    NAME,
    CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
    THEN NULL
    ELSE CASE WHEN attach_mimetype like 'image%'
    THEN '<img
    src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
    ELSE '<a
    href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
    end
    END new_img
    FROM TEST_WITH_BLOB
    If anyone can help me with this that would be appreciated.
    Thanks
    LEH

    John,
    The problem is that I do not know how to use the "GET_BLOB_FILE_SRC Function". I never got it to work but the HTML Expression did work for me. If you know how the GET_BLOB_FILE_SRC Function works then that would be helpful. I don't think it would be helpful if I posted my example on apex.oracle.com. But here is the information I have on the GET_BLOB_FILE_SRC Function.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    GET_BLOB_FILE_SRC Function
    As an alternative to using the built-in methods of providing a download link, you can use the APEX_UTIL.GET_BLOB_FILE_SRC function. One advantage of this approach, is the ability to more specifically format the display of the image (with height and width tags). Please note that this approach is only valid if called from a valid Oracle Application Express session. Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.
    See Also:
    "About BLOB Support in Forms and Reports" in Oracle Application Express Application Builder User's Guide
    Syntax
    FUNCTION GET_BLOB_FILE_SRC (
        p_item_name           IN VARCHAR2 DEFAULT NULL,
        p_v1                  IN VARCHAR2 DEFAULT NULL,
        p_v2                  IN VARCHAR2 DEFAULT NULL,
        p_content_disposition IN VARCHAR2 DEFAULT NULL)
        RETURN VARCHAR2
    Parameters
    Table 1-28 describes the parameters available in GET_BLOB_FILE_SRC function.
    Table 1-28 GET_BLOB_FILE_SRC Parameters
    Parameter Description
    p_item_name
    Name of valid application page ITEM that with type FILE that contains the source type of DB column.
    p_v1
    Value of primary key column 1.
    p_v2
    Value of primary key column 2.
    p_content_disposition
    Specify inline or attachment, all other values ignored
    Example
    As a PLSQL Function Body:
    RETURN '<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P2_ATTACHMENT',:P2_EMPNO)||'" />';
    As a Region Source of type SQL:
    SELECT ID,
           NAME,
           CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
                THEN NULL
                ELSE CASE WHEN attach_mimetype like 'image%'
                          THEN '<img
    src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
                          ELSE '<a
    href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
                          end
            END new_img
       FROM TEST_WITH_BLOB
    The previous example illustrates how to display the BLOB within the report, if it can be displayed, and provide a download link, if it cannot be displayed.Thanks
    LEH

Maybe you are looking for

  • Printing Duplex

    I'm using Vista SP1 and Adobe Reader 8.1.2. When I open a PDF (or an email) to print I click on 'Properties' in order to print duplex. Unfortunately Adobe just closes without printing. Has anyone experienced this? Any ideas on how to resolve?

  • Problem or Characterisc of EZ Media?

    I purchase one EZMED 1HDX2TB LA in brasil, on network of 1GB the manager web console is very slow...the hard disk light always ON but no have traffic!, after some time the hard disk make noise, have one software read hard disk full integral time?, no

  • Best way to mix multiple camera angles from multiple performances?

    There has to be a slick way to do this, but I can't seem to figure it out.  I'm hoping someone can offer their advice on the best way to approach this project. (I'm using Premiere Pro CS4) I have footage from 2 performances of a high school play that

  • Best way to port from Verizon to AT&T (device only)

    My wife and I are Verizon customers. We wish to switch to AT&T's Mobile Share. We currently have Verizon iPhone 5's and plan on purchasing the device only Verizon iPhone 6 Plus because of it's GSM/CDMA capabilities. Since Apple is not yet offering de

  • Alignment in AlertBox

    I want to give the content in an alertbox as center aligned and the title of the same as left aligned.... and for the same the code given by me is as follows, but it doesn't work... every thing (title+content) is center aligned... Please help me....