Display picture in blob on report with GET_BLOB_FILE_SRC

Hi Guys !
I want to display picture contains in blob on my report. The function GET_BLOB_FILE_SRC can do that but I must have an File browse item to use them.
The only other way I know is to create my own function that return my image. Like that :
create or replace
PROCEDURE "GET_FILE" (p in number) as
v_mime varchar2(255);
v_length number;
v_file_name varchar2(2000);
Lob_loc BLOB;
BEGIN
select mime_type, blob_content, name,dbms_lob.getlength(blob_content)
into v_mime,lob_loc,v_file_name,v_length
from file
where id = p;
-- 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(v_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Expires: ' || to_char(sysdate + 1/24,'FMDy, DD Month YYYY HH24:MI:SS') || ' GMT');
htp.p('Content-Disposition: attachment; filename="' ||
substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
end adu;
The only benefit to use GET_BLOB_FILE_SRC is for specify format of my image ?
Sylvain Michaud

See +{message:id=10172227}+

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

  • Displaying multi-page BLOB on Reports

    Hi to all,
    I have experience with Forms but unfortunatelly not much with Reports.
    I've been succesful at querying and displaying the content of a BLOB column that stores .TIFF images.
    I've made the same steps described on the post: Display images from a BLOB
    "Field.Source: my blob's column name
    Column.File format: image "
    I've set the vertical and horizontal elasticity properties of the field and the container repeating frame to Expand.
    However, the report only displays the first .tiff image, although the same BLOB column contains multiple images
    Do I need to change more properties in the repating frame or in reports in general to achieve this?
    Or do I have to iterate this images either programatically?
    Either way, how can I do this?
    Any help would be appreciated.
    Best regards,
    Jorge

    What it sounds like you are trying to do is have a detail
    page listing detail records about documents followed by pages of
    those document images.
    Try designing two reports, one for the detail pages. Then
    design a report to display the just the images. You should
    pre-determine if the images exist.
    Then combine the two reports onto a new report. This parent
    report should reference common value(s) that are the same for all
    details.
    So first design a query that provides all your information,
    including image file names with path and an indicator if the file
    exists and all the detail for the detail report and perhaps an
    identifier to connect the line item to the image.

  • BBM 5 Display Picture changing problem

    Hi..
    OK here .. i guess it is a new problem with the new BBM ..
    whenever i change my display picture, it doesn't change with my contacts..
    i have added myself to test the problem, and it didn't change even though it changes on my BBM header..
    We need a fix
    thank you

    i have tried upgrading the OS of the blackberry, but the problem is still there.
    Let's hope it's gonna be fixed soon

  • Cannot insert a picture (image - BLOB) directly into a report field?

    Hello
    I am new to APEX and I am trying to create a table with an image together with an input form and an output report but I am having difficulty in displaying the image in the report field.
    My work so far:
    1 I am using APEX to generate a table with a BLOB, Filename and Last_Update_Date fields.
    2 I have followed the article on the http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm.
    3 The title is: 'Defining and Viewing BLOB Data in Oracle Application Express 3.1'
    4 I have generated the table, form and report.
    5 I have downloaded the image as an attachment and inline on the form Ok.
    6 I have successfully downloaded an image on the report with the words image as a link in the report field. Note the http path is: http://glkas0892v.greenlnk.net:7777/pls/htmldbDEV/apex_util.get_blob_file?a=475&s=7094501042405784&p=3&d=1360784770040764381&i=1360783771822764369&p_pk1=123&p_pk2=&p_ck=2F17C4FBDE22B25A02026F67AB59D4F0&p_content_disposition=inline
    7 I have unsuccessfully tried to insert the image directly into a report field itself. The report displays the picture as a symbol with a cross.
    Note the http path is: http://glkas0892v.greenlnk.net:7777/pls/htmldbDEV/apex_util.get_blob?s=7094501042405784&a=475&c=1360779972416764351&p=2&k1=&k2=&ck=4BFA878ADD2028D2E9B127BB03F78B8D&rt=CR
    7a I have reduced the size of the images to 20 by 30 pixels but no joy.
    Conclusion
    The only difference I can see is that in 6 the command in the path is apex_util.get_blob_file? But in 7, unsuccessful, the command in the path is apex_util.get_blob?
    Please help me as there must be some one out there who has experienced the same situation.
    Thanks
    Brian

    My colleague has found the answer. A known fault exists within APEX 3.1 in that the Blob declaration must be after the Last update declaration and then the image displays correctly on the report.

  • APEX 5.0. Report with image stored in a BLOB gives ORA-06502.

    Hi,
    I want to create an Interactive Report - Desktop with an image in which is stored in a BLOB but it returnes a: ORA-06502: PL/SQL: numeric or value error: character to number conversion error.
    I have created a test report with only the image (billed - which is a BLOB) and an ID (the PK  - a number from a sequence)
    select ID, billed from foto
    I have tried with and without a formatmask for the ID '999999999999999' and the Type as Plain text as there seems not to be a better choice..
    For the 'billed' Type is 'Display Image' and the 'Table Name' and 'BLOB Column' are set. 'Primary Key Column 1' is set to ID. 'Mime Type Colomn' points to a field that contains 'image/jpeg' as the stored image is a photo in jpg.
    The image displays OK from a Forms application.
    DB is a 11.2.0.4 on Linux 6.6 and APEX is 5.0
    What have I missed?
    Thanks,
    Dino

    Dino Hustinx wrote:
    I want to create an Interactive Report - Desktop with an image in which is stored in a BLOB but it returnes a: ORA-06502: PL/SQL: numeric or value error: character to number conversion error.
    I have created a test report with only the image (billed - which is a BLOB) and an ID (the PK  - a number from a sequence)
    select ID, billed from foto
    As described in the documentation, the report query must select the length of the BLOB column, not the column itself:
    select id, dbms_lob.get_length(billed) billed from foto

  • Report with a blob

    Hello!!
    I need make a report with a blob. I have this table:
    CREATE TABLE DOCUMENTOS (
    ID_DOCUMENTO NUMBER NOT NULL,
    ID_PROY NUMBER NOT NULL,
    ENCABEZADO VARCHAR2 (100),
    TEXTO VARCHAR2 (500),
    PATH BLOB,
    FECHA_CREACION DATE,
    TODOS CHAR (1),
    DGTM CHAR (1),
    PROYECTO CHAR (1),
    TIPO_DOC VARCHAR2 (50),
    CONSTRAINT PK_ID_DOCUMENTO
    PRIMARY KEY ( ID_DOCUMENTO )
    I need a report that displays all the PATH depending other table.
    How can I do it???

    check this How to Upload and Download Files in an Application
    let me know if you have any doubts

  • Customer line item report with GL account display

    Hi
    Please guide some customer reports for the following
    Client need a Customer Line item reports with Customer number and repective gl account for each line items.
    for ex: Product A/c xxxxxx
              To Sales A/c xxxxxx(recon A/c)
    Thanks in advance

    Hi
    1.FBL5N -  Customer Line item Display (Customer Line item reports with Customer number )
    2.FBL1N - Vendor Line item Display
    3.FBL3N - General Ledger Line item Display
    The sales entry will be
         DR  Customer - to view this entry FBL5N
               CR Sales - to view this entry FBL3N
    Hope this will be usefull

  • Empty report with pagination,  rows not displayed

    Dear HTML DB Team,
    We have in our reports the next error: An empty report with pagination appears , no rows not displayed
    The test case to reproduce the error:
    1. Create "SQL report" with next report attributes in "Layout and Pagination"
         a. Row ranges 1-15 16-30 in select list (with pagination)
    b. Number of Rows : 15
    c. Number of Rows (Item): empty
    d. Max Row Count: empty
    2. Fill the table on which the report is based with 17 rows
    3. Go to the 2nd page of the report , pagination rows 16-17 of 17
    4. Remove 2 rows from the table, refresh report
    5, The pagination shows now 1 - 15 of 15 rows
    - no rows displayed
    - no "previous button" ( only )
    - no way to get the rows displayed, except logging out and in again
    Any suggestions?
    Erik

    Hello,
    i encountered the same problem while developing in HTMLDB.
    In application builder, i select application Application 106, then click on items, then click next ( the application has 22 global items). Now i want to take a look at the global items in application 105 (there are only 5). In the menu i click Builder - Application 106, select application 105 from Available Applications, click Go and Items. It shows no rows, but says that is displaying rows 1-5, and offers a Next button. No way to see/modify the items unless make a new session or go back to Application 106, Click Previous to see the first page of global items and then again switch to Appication 105 or click to the next button and then manually set pg_min_row=1 in URL.
    One more question - is this forum the right place to report bug suspicions, or is there some other special place for that?
    Best regards,
    Andres

  • Display picture in messages totally  pixelated when seeing it with yahoo messenger for windows

    Hello,
    I'm using messages to chat with my yahoo messenger account  at work and yahoo messenger for windows at home.
    When I log into Yahoo with messages, my yahoo display picture is updated automatically with the one I have choose in messages.
    My problem is that this picture is totally pixelated when you see it on yahoo messenger for windows. It seems that Messages is changing its size.
    As the size in Yahoo messenger for windows is bigger it appears pixelated!
    If I choose no display picture in messages, the one I have choose with yahoo messenger for windows disappear when I'm logging with it.
    Is there a way that messages do not update the display picture each time I'm logging to Yahoo?
    I suppose that there is no solution to this problem but I wanted to be sure.
    Anyway thanks for your help.

    HI,
    Thanks for the Path.
    This does seem to show all the Recents from the Contacts App > My Card, the Login Pic and the Messages Buddy List pic.
    I think in Mountain Lion these were either separate items  or the .plist that is in the current place listed the app/location the pic was used.
    I have looked at the pictures in the folder (.png and thumbnail .tiffs) and the .plist and it does seem to be all the pics I have used in all three places over the last few months.
    The Yahoo account is logged in not through IMAgent that FaceTime and Messages use for other Accounts but from the IMServicePluginAgent.
    In Mountain Lion this used to list a Buddy Pic server as well as a straightforward login.
    Using Little Snitch I am not seeing that in Mavericks.
    Seems you may have to change your Pic on a web page for your Yahoo account.
    Edit
    for the Points
    9:22 pm      Friday; November 8, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    Message was edited by: Ralph Johns (UK)

  • Display pr which is not linked with po in report

    Hi ,
    ALL SAP EXPERTS,
    I  HAVE PREPARE A QUERY BY USING *INPUT*
    1) MATERIAL NO
    2) PLANT
    3)PROCESSING STATUS OF PURCHASE REQUISITION OR P.O.
    OUTPUT ARE
    1) PUR. ITEM NO
    2) P.R. NO
    3)QTY REQUESTED IN PR
    4 P.O. ITEM NO
    5)P..O NUMBER
    6)P.O. QUANTITY
    7) GR DOCUMENT NO
    FOR THAT I HAVE TO USED TABLES EKET,EBAN AND EKBE  BUT ISSUE IS THAT WHEN IN GOING TO RUN THE REPORT
    1) ONLY THOSE REQUISITION ARE DISPLAYED IN THE REPORTWHICH ARE LINKED WITH PO . IE. STATUS OF PR ONLY FOR 'B'
    TYPE NOT FOR 'N'
    2) ITEMS  IN PR OR P.O. DISPLAY 2 TIMES IN THE REPORT
    3) WHY THE SYSTEM IS NOT SHOWING PR, PO  WHICH HAS NO PR,PO HISTORY IN THAT REPORT I.E. OPEN PR, PO
    USERS DONT WANT TO USE STD REPORT ME5A OR ME2N THEY WANT TWO REPORT IN ONE COMPLETE REPORT IN
    SCREEN
    PLEASE KINDLY HELP TO SOLVE MY ISSUE
    THANKS IN ADVANCE
    REGARDS,
    RAHUL

    You can debug your program and check. also please check if there is any deletion indicator in PR which doesnt turn up in the report.
    in report please dont have status or PR selection field as mandatory because depending on the status/ processing PR, system may skip PR's as they may not meet required conditions.
    Raghavan

  • Tcode SD related for displaying a report with completed deliveries

    Dear SAP Experts,
    I would like to ask you a question.
    Is there any Tcode for displaying a report with all the completed outbound deliveries (8000++) or posted goods issues (4900++) with the relevant net values of the relevant sales orders, BEFORE the creation of the relevant billing documents.
    Great Thanks in Advance
    Kind Regards
    John

    You can use transaction VF04 - Billing due list.

  • BO fails to display cloned reports with DATE_TIME data in View mode

    Problem: We create a table using Rebean API. The table contains cells displaying DATE_TIME data (Detail). The cellu2019s formula is correct and the Applet shows the data alright. But when in view mode, there stand u201CINPUT_DATE_TIMEu201D text. If we open the report in the Applet and just click the cellu2019s formula without changing anything, the report starts to draw itself properly in view mode too.
    We have to manually touch cloned reports with DATE_TIME values.  Didn't find anything same in the search..
    Can anyone help with this problem?
    Great thanks,
    Oleg

    Hi Oleg,
    It may help if you post the code that you are using to create the block (table) with the DATE_TIME data.
    Please include the code from when you open/create the WebI document up to the point when you save the WebI document.
    Regards,
    Dan

  • Displaying a report with 250 000 rows in BI Publisher 11.1.1.6 == very slow

    Hi,
    I try to display a report with 250 000 rows in bi publisher 11.1.1.6.
    Running the SQL Request in TOAD take 20s.
    From bi publisher 11.1.1.6 this operation take more than 2 hour without result.
    The temp file show an xml file which increase (53 M to 70M to 100 M)
    I configure jvm (1.6_029) with the following parameters : Xms512m - Xmx2048 -XX:MaxPermSize=3072m
    My configuration is the following :
    REHL5 64bits
    8G RAM
    100G file system and 50 GB tmp file for bi publisher
    4 CPU
    Jdk Parameters:
    Xms512m -Xmx2048m -XX:MaxPermSize=3072m -XX:UseParallelGC.
    Total CPU usage : 25%
    Live Threads : 85 threads
    Used : 665 Mb
    Commited : 908 Mb
    GC time :
    8.047 s on PS MarkSweep (3 collections)
    8.625 s on PS Scavenge (242 collections)
    Any idea to increase performance or other will be appreciate.
    Thank you
    Mams

    If you are generating a PDF output, select "PDF Compression" option in the properties. Ensure you reduce all the log levels to "Low". Ensure there are no (or minimal) calculations/formulas in the report template.

  • Problem with displaying picture.

    I use PS-CC and LR5.on a HP i7 computer and windows 7.Camera D-800, pictures in raw.
    I usually import pictures in nef  in LR5,. After  some corrections, I export my pictures to DNG format. I sometimes do a little bit of work in camera raw then go into Photoshop.
    My problem: When in photoshop, I get a grainy version of my photo which wasn't the situation in LR5 or Camera raw, Hard to work with. The grains will disappear when I enlarge the picture but then I have to enlarge it so much that I only see or can work with only part of my picture. The problem does not appear in CS6.
    Hope somebody can help me.
    Thanks
    Jacques Legault

    I should clarify this.. When I import photos into LR5, I always use copy as
    DNG. I know that NEF and DNG are the same for photoshop and I always shoot
    in raw.
    One thing I do not know is how to do a screen shot. I will get back tro you
    on that. When I say grain, or noise if you like, I mean that, if i relate
    to films, my picture in LR5  would be at ISO 100 and my screen shot in
    photoshop would look like it was boosted to 1200 or worse.
    See you soon I hope with a screen shot.
    2014-06-14 13:43 GMT-04:00 twenty_one <[email protected]>:
        Problem with displaying picture.  created by twenty_one
    <https://forums.adobe.com/people/twenty_one> in *Photoshop General
    Discussion* - View the full discussion
    <https://forums.adobe.com/message/6458682#6458682>

Maybe you are looking for