BLOB CONTENT APEX

Hello every body,
I have a trouble with downloding a file with APEX4.1.
Wel , i have a table width this structure MY_TABLE(ID NUMBER(5),NAME VARCHAR2(100),BLOB_CONTENT Blob). i can upload file information into this table but when i try to download the file i got a erreur in my borwser page it contains this message
Not Found
Sorry!The page requested was not found.
Any help , Thanyou :-)

Salam Yosof,
Pls, read this article:
http://www.oracle.com/technetwork/issue-archive/2009/09-jan/o19browser-087025.html
Regards,
Fateh

Similar Messages

  • Iframe of a Blob Content in Apex form/report

    Hi All
    I am developing a application where users will upload documents which will be stored in blob column. Now the requirement is to show the document with in the page using Iframe. Can some one please suggest the steps to show the blob content in iframe.
    Thanks in Advance.
    regards
    Srini.

    You can show the documents in an iframe only if your browser has an appropriate plugin (like to most browsers have it for pdf documents). Otherwise you will be forced to either save the document or open it with the appropriate programm. Means, your application will probably fail to show the documents in an iframe for all other document types other than pdf.
    I have no special case explaining how to display a document in an iframe but you can inspect it here:
    http://apex.oracle.com/pls/apex/f?p=31517:15
    and
    http://apex.oracle.com/pls/apex/f?p=31517:58
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Downloading blob content from a custom table

    In our hosted Apex application, the following code from the Application Express Developer's Guide works great for allowing a user to download blob content from one of our custom tables via a download button. However, the code doesn't work on the Oracle Cloud because the "owa_util" package is no longer available. The code is as follows:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    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_subjects
    WHERE id = p_file;
    -- 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('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_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 download_my_file;
    Besides using web services, does anyone know of a way to do this? Is there a way to add access to the "owa_util" package in the cloud? I have also tried apex_util.get_blob_file_src but that is also unavailable in the Oracle Cloud.
    Thanks,
    Steve

    Following Joel's advice:
    The way I solved this was to split the code between two page processes and one application process. The download button first calls a page process to move the report data into a blob column and then calls another page process which is of "run application process" type. This calls the application level process where the download code, shown below, is called.
    Notice the following changes to the code from the one posted earlier (also from Joel)
    1) added sys.htp.init;
    2) "sys." to all htp, owa and wpg_docload calls
    3) added apex_application.stop_apex_engine; after the wpg_docload statement at the bottom of the script.
    Now the download button launches a "save as" dialog box and the report content is downloaded to the client.
    The code now looks like:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    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 oehr_file_subject
    WHERE id = p_file;
    -- 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
    sys.htp.init;
    sys.owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    sys.htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    sys. htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    sys.owa_util.http_header_close;
    -- download the BLOB
    sys.wpg_docload.download_file( Lob_loc );
    apex_application.stop_apex_engine;
    end download_my_file;
    Thanks Joel for your help.
    Steve

  • Display blob content as pdf file

    Dear Expert,
    Currently i'm using oracle apex 3.0.1.
    I'm having a problem on displaying blob content (from database table) as pdf file on oracle application express but i'm able to save to download the pdf.
    Below is the procedure that i used to display blob content,
    PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    begin
    selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
    into lob_loc,l_length
    from ord_img
    where oi_tno= pv_image
    and oi_ti='PDF'
    and oi_idx=pv_index;
    exception
    when others then
    null;
    end;
    OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
    HTP.p ('Content-length: ' || l_length);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (lob_loc);
    END lf_html_pdf;
    I get the error message as below when i execute the procedure above;
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    *06502. 00000 - "PL/SQL: numeric or value error%s"*
    I'm appreciated if expert can have me on the problem above?
    Thanks
    From junior

    *Always post code wrapped in <a href=http://wikis.sun.com/display/Forums/Forums+FAQ#ForumsFAQ-Arethereanyusefulformattingoptionsnotshownonthesidebar?"><tt>\...\</tt> tags</a>:*
      PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
         l_mime        VARCHAR2 (255);
         l_length      NUMBER;
         l_file_name   VARCHAR2 (2000);
         lob_loc       BLOB;
      BEGIN
          begin
            selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
            into lob_loc,l_length
            from ord_img
            where  oi_tno= pv_image
              and oi_ti='PDF'
              and oi_idx=pv_index;
          exception
                when others then
                null;
            end;
         OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
         HTP.p ('Content-length: ' || l_length);
         OWA_UTIL.http_header_close;
         WPG_DOCLOAD.download_file (lob_loc);
      END lf_html_pdf; Start by getting rid of:
          exception
                when others then
                null;and never using it anywhere ever again.
    If you're not actually going to use the <tt>l_mime</tt> and <tt>l_file_name</tt> variables then remove these as well. (Although I really think you should set a filename.)
    >
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    06502. 00000 - "PL/SQL: numeric or value error%s"
    >
    The error stack indicates that the exception is being raised in <tt>HCLABPRO.PKG_PDF</tt>: what is <tt>HCLABPRO.PKG_PDF</tt>? Does this actually have anything to do with the procedure above?
    I get the error message as below when i execute the procedure above;How do you execute it?
    What happens when it's executed without the <tt>when others...</tt> built-in bug?

  • Diaplay BLOB content (jpeg picture) in XML Publisher 5.6.3

    Hi Gurus,
    I am trying to include BLOB content (jpeg picture) in my RTF template.
    But the pdf output giving blank page.
    I am using following syntax in my picture form field.
    <fo:instream-foreign-object content-type="image/jpg" width="251.8pt"
    height="174.3pt">
    <xsl:value-of select="FILE_DATA"/>
    </fo:instream-foreign-object>
    Can you please correct me where I am doing wrong..?
    Many Thanks..!

    Hello Friends,
    Can anyone help me to resolve this issue please..!
    Below is the error from OPP service log.
    [6/14/10 3:33:34 PM] [UNEXPECTED] [54042:RT1236433] java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.charAt(String.java:687)
         at oracle.apps.xdo.common.encoding.Base64Util.decode(Base64Util.java:54)
         at oracle.apps.xdo.template.fo.elements.FOInstreamForeignObject.end(FOInstreamForeignObject.java:71)
         at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:455)
         at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(XSLTHandler.java:594)
         at oracle.apps.xdo.common.xml.XSLTMerger.startElement(XSLTMerger.java:51)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
         at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:320)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1051)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:296)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
    [6/14/10 3:33:34 PM] [54042:RT1236433] Completed post-processing actions for request 1236433.
    Many Thanks..!

  • Send Blob Contents to Client machine as Attachment

    I am able to see the blob contents in the client window but the file does not show as attachment which is my main purpose-- to give the user the option either to open the file or to save the file on his machine. I am also setting the setHeader as attachment , but nothing happens....and sometimes it shows a dialog box to open my jsp file itself rather than the desired file... sending you the code ..please help
    File file1 = new File("c:\\Test.java");
    byte[] buffer = new byte[(int)file1.length()];
    BufferedInputStream is = new BufferedInputStream(new FileInputStream(file1));
    is.read(buffer, 0, (int)file1.length());
    is.close();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    baos.write(buffer, 0, (int)file1.length());
    System.out.println(baos.toString());
    byte[] pass = baos.toByteArray();
    response.setHeader("Content-Desposition", "attachment;filename=untitled.java");
    response.setContentType("application/octet-stream");
    //Send content to Browser
    ServletOutputStream servletOut = response.getOutputStream();
    servletOut.write(pass);
    servletOut.close();

    It works,
    you have a type!
    response.setHeader("Content-Desposition", "attachment;filename=untitled.java");
    It should be "Content-Disposition" not "Content-Desposition"
    try it out.
    cheers

  • Upload blob content

    Hi all,
    I am facing an issue, while inserting blob content into database.
    I am having a table(table1) with following column cat(char) PK,upload blob,mimetype varchar(1000),filetype varchar(1000)
    For inserting values into DB(table1) i am using the following process, here it works fine
    BEGIN
    IF (:P9_X IS NOT NULL)
    THEN
    INSERT INTO table1(cat,UPLOAD,MIMETYPE,FILETYPE)
    SELECT :p9_cat,blob_content,MIME_TYPE,FILE_TYPE FROM wwv_flow_files where name=:P9_X;
    END IF;
    END;
    But, when i tried to have ID(number PK) in table1 with above process, i am not able to insert values. While creating process it throws following error.
    INSERT INTO table1(ID,UPLOAD,MIMETYPE,FILETYPE)
    SELECT DEL_SEQ.NEXTVAL,blob_content,MIME_TYPE,FILE_TYPE FROM wwv_flow_files where name=:P9_X;
    ORA-06550: line 6, column 24: PL/SQL: ORA-00932: inconsistent datatypes: expected NUMBER got BLOB ORA-06550: line 5, column 7: PL/SQL: SQL Statement ignored
    Thanks.

    Hi,
    If I understand correctly, your table UPLOAD column format is number and you try insert BLOB to it.
    Regards,
    Jari

  • Possible to take a blob content out of table

    Hi,
    i have a table in which the image is getting storing in the table in blob content.
    Whether it is possible to copy that image which is stored in the table to outside, so that i can edit the photo in paint.
    It is possible to take that blobcontent of the image out of the table.
    If so, how to achieve it.
    Regards,
    Saro.

    Hi Saubhik,
    Thanks for the reply, but i get the following error while compiling the code after altered to my requirement.
    DECLARE
    b             BLOB;
    file_handle   UTL_FILE.FILE_TYPE;
    file_dir      varchar2(100) := '\ebiz1\proddb\apeximages';
    l_blob_len    INTEGER;
    BEGIN
    SELECT   blob_content
    INTO   b
    FROM   a_images2
    WHERE   employee_number = '048';
    file_handle := UTL_FILE.FOPEN (file_dir, 'prasad.png', 'wb')
    l_blob_len := DBMS_LOB.getlength (b);
    UTL_FILE.FCLOSE (file_handle);
    end;This is the error message
    ORA-29280: invalid directory path
    ORA-06512: at "SYS.UTL_FILE", line 41
    ORA-06512: at "SYS.UTL_FILE", line 478
    ORA-06512: at line 15
    Since i have referred the oracle path only, then also it is throwing the error.
    Thanks
    Saro

  • Discoverer portlet error: blob content is empty.

    I created 6 disco reports and some are giving error, Failed to retrieve an entry from the cache in the Discoverer Portlet Repository. The BLOB content is empty.
    This error only happens with certain users. The users can log directly into discoveer viewer and see the reports. Just not in portal. It also gives me this error randomly and I have to delete the portlet and recreate it. Has anyone else experienced this problem.
    BH

    I copied and pasted the above code to my jsp. It works fine for me . I get the content correctly. Tried on a ps 7.1
    hope the additional character "/>" is not intended
    <td>city</td><td><input name="city"value="city"/>/></td>

  • Display BLOB contents to client

    I want to display the blob contents in the clients window and give him the option either to open or save the contents. I am able to read the contents from Oracle Blob Field and stored the contents in the ByteArrayOutputStream object but I am not able to open the contents for the client. I am using the following code
    Blob blob = resultSet.getBlob(1);
    int length = (int)blob.length();
    byte [] b = blob.getBytes(1, length );
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    baos.write(b,0,length);
    response.setHeader("Content-Disposition","attachment; filename="+baos );
    Please help me

    I am able to see the blob contents in the client window but the file does not show as attachment which is my main purpose-- to give the user the option either to open the file or to save the file on his machine. I am also setting the setHeader as attachment , but nothing happens....and sometimes it shows a dialog box to open my jsp file itself rather than the desired file... sending you the code ..please help
    File file1 = new File("c:\\Test.java");
    byte[] buffer = new byte[(int)file1.length()];
    BufferedInputStream is = new BufferedInputStream(new FileInputStream(file1));
    is.read(buffer, 0, (int)file1.length());
    is.close();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    baos.write(buffer, 0, (int)file1.length());
    System.out.println(baos.toString());
    byte[] pass = baos.toByteArray();
    response.setHeader("Content-Desposition", "attachment;filename=untitled.java");
    response.setContentType("application/octet-stream");
    //Send content to Browser
    ServletOutputStream servletOut = response.getOutputStream();
    servletOut.write(pass);
    servletOut.close();

  • See BLOB contents on Oracle FORMS

    Is there anyway that I can see the BLOB object contents in Oracle Forms? For example, if I have a word document in BLOB, I should be able to open it in Oracle forms. I've already posted this today, but just for clarification, I'm reposting this with exact requirements. My client wishes to see data from a table and in that a BLOB object is one of the columns. For each row, there is a word document, which should also be displayed (or at least a link) on Form. If clicked on the link, the BLOB content, i.e., the word document should get opened. Please let me know if there is any way. Francois was trying to help me, I think this explanation makes it clear for him and also others. I don't have webutil library and my Forms version is 6.0.8.18.3. Please help me soon. I'm in an urgent realease this weekend and need this deliberately. It is not possible to upgrade to newer version for me.
    Thanks
    Sarma.

    In fact, I just had to do this today. It works as expected using an image item on the BLOB column. I am at 10.1.2.0.2, if that makes any difference. Are you positive you have data in the BLOB column? I noticed that after loading a table with image items, I used SQL Developer to look at the table to ensure there was data in the rows. After that, the images no longer appeared in the form. I had to reload the table, then all was well again.

  • Converting an image as a blob content from .gif format to .jpg format

    Hi
    Does anyone know how to convert a blob content from .gif format to .jpg format?
    I've tried looking at the process-method of intermedia, but I can't figure out how it's supposed to work... I'm on a 10.2.0.2 standard edition database
    I simply have a blob containing a gif-image, and I want it to be convertet to a jpg-image for further use
    Can anyone help?
    Thank you
    /Klaus Mogensen

    Hi
    Does anyone know how to convert a blob content from
    .gif format to .jpg format?
    I've tried looking at the process-method of
    intermedia, but I can't figure out how it's supposed
    to work... I'm on a 10.2.0.2 standard edition
    database
    I simply have a blob containing a gif-image, and I
    want it to be convertet to a jpg-image for further
    useWhat OS is the database running on? If it is a *nix flavour, you can call out to image magick convert utility (it is pre-installed on most linux variants, and you can compile it from source for other unixes). So you would probably store the blob into a temp file on the database server, call out to the shell to execute convert, and then load a blob from the converted file. See http://imagemagick.org for more information.
    If that is not an option, you might be able to use Java Advanced Imaging API from a Java stored proc to convert between those image formats. See http://java.sun.com/products/java-media/jai/downloads/download-1_1_2.html
    gojko adzic
    http://gojko.net

  • How to append the string into blob content

    the blob column will have a string with comma separated values which needs to be changed to column wise data and update it back with the existing BLOB content.
    string like:-'V,CTMF,1.0,M,ICD-9 to 10 CM,CODE_COMMENTS_UPLOAD,0,A,bsns,2012-04-01,Author,pa admin,Comment,50 Record Map,F,Vascular,C,M'
    after i got splitting the values to column wise:
    V
    CTMF
    1.0
    M
    ICD-9 to 10 CM
    CODE_COMMENTS_UPLOAD
    0
    A
    bsns
    2012-04-01
    Author
    pa admin
    Comment
    50 Record Map
    F
    Vascular
    C
    M
    finally i need the blob append data output look like below,please do the needful................
    blob_value
    V,CTMF,1.0,M,ICD-9 to 10 CM,CODE_COMMENTS_UPLOAD,0,A,bsns,2012-04-01,Author,pa admin,Comment,50 Record Map,F,Vascular,C,M
    V
    CTMF
    1.0
    M
    ICD-9 to 10 CM
    CODE_COMMENTS_UPLOAD
    0
    A
    bsns
    2012-04-01
    Author
    pa admin
    Comment
    50 Record Map
    F
    Vascular
    C
    M

    actually
    my blob column values is:
    V,CTMF,1.0,M,ICD-9 to 10 CM,CODE_COMMENTS_UPLOAD,0,A,bsns,2012-04-01,Author,pa admin,Comment,50 Record Map,F,Vascular,C,M
    splitting column wise data is:-**
    V
    CTMF
    1.0
    M
    ICD-9 to 10 CM
    CODE_COMMENTS_UPLOAD
    0
    A
    bsns
    2012-04-01
    Author
    pa admin
    Comment
    50 Record Map
    F
    Vascular
    C
    M
    now i am appending the string to blob content at the end of the line only like
    V,CTMF,1.0,M,ICD-9 to 10 CM,CODE_COMMENTS_UPLOAD,0,A,bsns,2012-04-01,Author,pa admin,Comment,50 Record Map,F,Vascular,C,MVCTMF1.0MICD-9 to 10 CMCODE_COMMENTS_UPLOAD0Absns2012-04-01Authorpa adminComment50 Record MapFVascularCM
    but my requirement is should be to append the column wise data to existing blob column as new line like:
    V,CTMF,1.0,M,ICD-9 to 10 CM,CODE_COMMENTS_UPLOAD,0,A,bsns,2012-04-01,Author,pa admin,Comment,50 Record Map,F,Vascular,C,M
    VCTMF1.0MICD-9 to 10 CMCODE_COMMENTS_UPLOAD0Absns2012-04-01Authorpa adminComment50 Record MapFVascularCM
    my procedure:
    create or replace
    PROCEDURE PR_TEST_BLOB2 IS
    RES_BLOB CLOB;
    DEST_BLOB BLOB;
    SRC_BLOB BLOB;
    CURSOR CUR_TEST_BLOB2 IS
    SELECT REGEXP_SUBSTR(STR, '[^,]+', 1, LEVEL) FROM (SELECT UTL_RAW.CAST_TO_VARCHAR2(BLOB_VALUE) STR FROM TEST_BLOB2 WHERE TEST_ID=10)
    CONNECT BY LEVEL <= LENGTH(STR) - LENGTH(REPLACE(STR,','))+1;
    BEGIN
    OPEN CUR_TEST_BLOB2;
    LOOP
    FETCH CUR_TEST_BLOB2 INTO RES_BLOB;
    EXIT WHEN CUR_TEST_BLOB2%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(RES_BLOB);
    DEST_BLOB:=UTL_RAW.CAST_TO_RAW(RES_BLOB);--converting clob to blob;
    SELECT BLOB_VALUE INTO SRC_BLOB
    FROM TEST_BLOB2
    WHERE TEST_ID = 10 FOR UPDATE;
    --move the blob values to source file
    DBMS_LOB.APPEND(SRC_BLOB,DEST_BLOB);-- append the blob values
    COMMIT;
    END LOOP;
    CLOSE CUR_TEST_BLOB2;
    END;
    could you please help me.

  • Display Blob content in Apex

    Hi folks
    I hope you can see HTML Expression code now.
    I have PDFs stored in BLOB columns along with FILE_ID column in the database.
    I want to display these to the APEX user on the page at runtime.
    I have created a SQL Query report page to display FILE_ID column.
    I am using HTML Expression property of the FILE_ID column to pull the image from the table using PROC_DISPLAY_DOCUMENT procedure.
    I typed folowing code int the HTML Expression text area of the FILE_ID column of the report page :
    [!-- img src="#OWNER#.proc_display_document?p_id=#file_id#" ]
    I am using following Procedure code:
    create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) **
    mimetype varchar2(48);
    n_length number;
    s_filename varchar2(400);
    lob_image blob;
    Begin
    select MIME_TYPE,dbms_lob.getlength(blob_content),file_name,blob_content
    into s_mime_type,n_length,s_filename,lob_image
    from tbl_upload_file
    where file_id = p_id;
    owa_util.mime_header(nvl(s_mime_type, 'application/octet' ),false);
    --set the size so the browser knows how much it will be downloading
    htp.p( 'content-length: '|| n_length );
    --The file name will be used by the browser if the users does a "save as"
    htp.p( 'content-Disposition: filename="' || s_filename ||'"');
    owa_util.http_header_close;
    --Download the BLOB
    wpg_docload.download_file( lob_image );
    exception
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-202121,'Record matching screenfield filename not found, PROC_DISPLAY_DOCUMENT.');
    end;
    --This is very Important
    --grant execute on PROC_DISPLAY_DOCUMENT to public;
    This code does not work and Apex report does not display PDF image.
    Any help to troubleshoot this code will be appreciated.
    Thank you in advance.
    Jaya

    create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) **
    mimetype varchar2(48); ... Doesn't look correct to me. What are the ** for?
    Does the procedure compile?
    This code does not workHow did you come to this conclusion? Any error message you got?

  • BLOB content download link on apex report

    Hi Guys,
    I have a simple form where user can attach file and save the records. I iterate through wwv_flow_files and get the file and save it to a custom table which has BLOB column. On another report page i display uploaded file details. What i need is, there must be a column with download link when user clink the link appropriate file should be downloaded. How can i do this ?
    Really appreciate if someone can assist me on this.
    Thanks Guys.

    See About BLOB Support in Forms and Reports.
    There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well. (An earlier version but it is still relevant to APEX 4.x.)
    (Please make an effort to consult the documentation and thoroughly search the forum for previous coverage of a topic. This is a much discussed question.)

Maybe you are looking for

  • 2D28TU touchpad is not working

    Hi, I have purchased 2 HP laptops with serial number [Personal Information Removed] before last 10 months. After 6 months of proper used ,  both the laptops got serious issue touchpad and keyboard are malfunctioning. It's majorly happened for  some k

  • IWeb 1.1.1. Sites Won't Open in iWeb 3.0.1

    Can't seem to find an answer in this Forum to my problem. After transferring my Domains.sites file from iWeb 1.1.1 (Library/App Support) from my OS 10.4.11 Mac Mini to my Leopard Mini (10.5.8) iWeb 3.0.1 App Support location only the Domains.Sites2 f

  • Three Way Shuttle

    Hi all, I am looking for ideas on how I can implment a three-way shuttle. I want to start with a simple list of people (select person_id, name from per_person order by 1) and be able to shuttle from this list into one of two targets. The easiest exam

  • IUMap doubt

    Hi Guys, I hope you are having a great time on this holyday season. we are having trouble mapping a business service to a UIMap in a select tag. We are trying to invoke the business service in an onLoad function in the body of the page, then we are t

  • How can I change the problem on my Ipad's repair status?

    Hello, Actually, I found some problem with my Ipad, so I requested the repair service, but after I filled out the form and summitted, I noticed that my Ipad has another problem regardless of the first problem that I mentioned. If then, how can I let