PDF save to BLOB

Hello All,
we are using forms 10g, and there is a form in which a PDF report is created and mailed to the client. The requirement is while sending it as mail we need to save the PDF to the database, so we are uploading the file from the application server into the database server. The question is which mechanism can be used for that? is it webutil? if so it has a lot of configuration on application server side, so is there any faster way for that.
Thanks in advance,

If you were to install OAS10g, you could run your forms from there, and also make use of WebDAV. Oracle's WebDAV simply maps a file directory to the database: copy a file into a WebDAV directory, and the file is actually stored in the OAS Metadata Repository. Furthermore, you can set permissions on the WebDAV directories for users/groups.

Similar Messages

  • Apache FOP PDF Save in BLOB column

    Hi,
    I just want to call Apache FOP in an APEX process to create PDF reports and save these reports in a BLOB column in the same database. So I can email these reports in another process using APEX_MAIL. Does anyone know a way to achieve this?
    Thanks

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Display a PDF from a BLOB Column on a page.

    Hi Folks.
    I have PDFs stored in BLOB columns in the database.
    Is there a way to display these to the APEX user on the page at runtime?
    Any pointers appreciated.
    Meantime I'm going to experiment.
    Cheers
    Dogfighter.

    I suppose this depends really on what you want.
    You have at least two choices.
    1) Allow the user to download the pdf and then they get the option to save it or open it in a new window
    2) You can also get them to open it. You can open it in a new window by adding "_blank"
    in the target.
    The sample application has procedures download_my_file and custom_image_display which will show you how to achieve this.
    The only other way you could possibly do it is open it as a plugin. Thats way beyond my knowledge, but I'm sure someone else will chip in.

  • Is it possible to pass PDF (stored as BLOB) to PDFDocMerger

    HI Folks.
    Will PDFDocMerger Class allow you to pass in multiple PDF BLOBs as an input Stream Array?
    Any pointers appreciated as I need to know if this is a non-starter.
    I have many invoice PDFs stored as BLOBs in my database. I need a user to be able to select a bunch of these and have BIP merge them into one document.
    Any help greatly appreciated.
    Many thanks
    Dogfighter

    Hello Ike.
    I have downloaded the IDE and I am following the installation steps.
    I have performed step 3 and I have the following questions.
    1) I can see a node in JDeveloper called XMLPublisherDataTemplate.java but not one named format template. Should I be able to? Also, could not find this in the IDE download folders. Where should I be looking.
    2) I have executed the 'Run' on the XMLPublisherUtility.java node. The result was...
    \j2sdk1.4.2_13\bin\java.exe -jar D:\NGC IT\Software\Oracle\Java Developer\jdev\lib\ojc.jar -source 1.3 -target 1.2 -noquiet -warn -nowarn:320 -nowarn:486 -nowarn:487 -deprecation:self -nowarn:560 -nowarn:704 -nowarn:489 -nowarn:415 -nowarn:909 -nowarn:412 -nowarn:414 -nowarn:561 -nowarn:376 -nowarn:371 -nowarn:558 -nowarn:375 -nowarn:413 -nowarn:377 -nowarn:372 -nowarn:557 -nowarn:556 -nowarn:559 -encoding Cp1252 -g -d C:\BIPublisherIDE\BIPublisherIDE\classes -make C:\BIPublisherIDE\BIPublisherIDE\classes\BIPublisherIDE.cdi -classpath "\j2sdk1.4.2_13\jre\lib\rt.jar;\j2sdk1.4.2_13\jre\lib\i18n.jar;\j2sdk1.4.2_13\jre\lib\sunrsasign.jar;\j2sdk1.4.2_13\jre\lib\jsse.jar;\j2sdk1.4.2_13\jre\lib\jce.jar;\j2sdk1.4.2_13\jre\lib\charsets.jar;\j2sdk1.4.2_13\jre\classes;C:\BIPublisherIDE\BIPublisherIDE\classes;C:\BIPublisherIDE\BIPublisherIDE\lib\collections.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\i18nAPI_v3.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\j5472959_xdo.zip;C:\BIPublisherIDE\BIPublisherIDE\lib\jdom.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\versioninfo.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xdochartstyles.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xdoparser.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xmlparserv2-904.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\ojdbc14dms.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\orai18n.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\ocrs12.jar;D:\NGC IT\Software\Oracle\Java Developer\diagnostics\lib\ojdl.jar;D:\NGC IT\Software\Oracle\Java Developer\lib\dms.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\activation.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\ejb.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\jms.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\jta.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\mail.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\servlet.jar" -sourcepath C:\BIPublisherIDE\BIPublisherIDE\src;\j2sdk1.4.2_13\src.zip C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherApi.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherDataTemplate.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherDelivery.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\config\XMLPublisherConfig.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\utility\XMLPublisherUtility.java
    Error: cannot read: java.lang.Object
    [11:07:06] Successful compilation: 0 errors, 0 warnings.
    Can you suggest why I get "Error: cannot read: java.lang.Object"
    Many thanks
    Simon

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Opening a pdf from a blob

    Hi Guys,
    I know this is a borderline ApEx problem but I have a page whose sole job is to open a pdf from a blob stored in the database.
    This code works for most client machines:
    DECLARE
    l_blob blob;
    BEGIN
    SELECT letter INTO l_blob
    FROM letters
    WHERE lett_id = :P44_LETT_ID;
    -- owa_util.mime_header('application/pdf',false);
    -- tried pdf and octet they work the same?????
    owa_util.mime_header('application/octet',false);
    htp.p('Content-Length: ' || dbms_lob.getlength(l_blob));
    owa_util.http_header_close;      
    wpg_docload.download_file(l_blob);
    END;
    On some machines I get 'Windows cannot open this file ...File: f[7] ...To open this file..........
    On most machines this works fine.
    I haven't got it to fail with Firefox yet, just IE but only a few machines running IE. Client getting annoyed and I starting to stress.
    Many thanks
    Gary

    Have you already tried adding
    htp.p('Content-Disposition:  attachment; filename...as described here?
    http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm#CIHDDJGF
    Maybe it solves the problem, in case IE is a little bit picky. But I really don't know.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • BASE64 (PDF) CLOB to BLOB

    Hello everybody! I have to convert a BASE64 representation of a PDF file to BLOB. I found one example on the Internet but there is something wrong with it and I can't figure it out.
    create or replace function decode_base64(p_clob_in in clob) return blob is
    v_blob           blob;
    v_offset         integer;
    v_buffer_varchar varchar2(32000);
    v_buffer_raw     raw(32000);
    v_buffer_size    binary_integer := 32000;
    begin
    if p_clob_in is null then
    return null;
    end if;
    dbms_lob.CREATETEMPORARY(v_blob, true);
    v_offset := 1;
    FOR i IN 1..CEIL(dbms_lob.GETLENGTH(p_clob_in) / v_buffer_size)
    loop
    dbms_lob.READ(p_clob_in, v_buffer_size, v_offset, v_buffer_varchar);
    v_buffer_raw := utl_encode.BASE64_DECODE(utl_raw.CAST_TO_RAW(v_buffer_varchar));*
    dbms_lob.WRITEAPPEND(v_blob, utl_raw.LENGTH(v_buffer_raw), v_buffer_raw);
    v_offset := v_offset v_buffer_size;+
    end loop;
    return v_blob;
    end decode_base64;
    The above procedure should work with files of any size (since there is a loop), but it only works when the PDF is smaller than 32 KB.

    Just a guess.
    You may have additional CRLFs added when encoding.
    Try this:
    create or replace function replaceClob (opCLob CLOB,cpReplaceStr VARCHAR2,cpReplaceWith VARCHAR2) RETURN CLOB IS
       cBuffer    VARCHAR2 (32767);
       nBuffer    BINARY_INTEGER := 32767;
       nStart     PLS_INTEGER := 1;
       nLen            PLS_INTEGER;
       oCRtn      CLOB := EMPTY_CLOB;
       BEGIN
         DBMS_LOB.CreateTemporary(oCRtn,TRUE);
         nLen := DBMS_LOB.GetLength(opCLob);
         WHILE nStart < nLen
         LOOP
           DBMS_LOB.Read(opCLob, nBuffer, nStart, cBuffer);
           IF cBuffer IS NOT NULL THEN
             cBuffer := REPLACE(cBuffer, cpReplaceStr, cpReplaceWith);
             DBMS_LOB.WriteAppend(oCRtn, LENGTH(cBuffer), cBuffer);
           END IF;
           nStart := nStart + nBuffer;
         END LOOP;
         RETURN oCRtn;
       END;and then add to your code:
    create or replace function decode_base64(p_clob_in in clob) return blob is
           v_blob blob;
           v_offset integer;
           v_tem_clob clob;
           v_buffer_varchar varchar2(32000);
           v_buffer_raw raw(32000);
           v_buffer_size binary_integer := 32000;
           --v_buffer_size binary_integer := 3*1024;      
           begin
           if p_clob_in is null then
              return null;
           end if;
           -- Add this line
           v_tem_clob := replaceClob(p_clob_in,UTL_TCP.CRLF,'');
           dbms_lob.CREATETEMPORARY(v_blob, true);
           v_offset := 1;
           FOR i IN 1..CEIL(dbms_lob.GETLENGTH(v_tem_clob) / v_buffer_size) loop
               dbms_lob.READ(v_tem_clob, v_buffer_size, v_offset, v_buffer_varchar);          
               v_buffer_raw := utl_encode.BASE64_DECODE(utl_raw.CAST_TO_RAW(v_buffer_varchar));
               dbms_lob.WRITEAPPEND(v_blob, utl_raw.LENGTH(v_buffer_raw), v_buffer_raw);
               v_offset := v_offset + v_buffer_size;
           end loop;
           return v_blob;
    end decode_base64;Not tested.
    HTH
    Thomas

  • To upload a PDF file in BLOB column using Oracle Forms 9i

    Can anyone tell me how to upload a PDF file from client system using File dialog window and store its content in BLOB column in a table. The file to be uploaded will be in client side.

    Take a look at the following :
    Re: Storing a PDF in a BLOB
    Re: Retrive Image from DB into Image_item
    although the threads above are reffered to images and word doc... the procedure/steps are the same....
    Greetings...
    Sim

  • Uploading PDF in to BLOB and Retrieve PDF from BLOB

    hi
    I have recently started working in apex and run into a bump while trying to handle PDF file Attachments and BLOBs.
    I am trying to upload a PDF file into BLOB database Column using APEX, and later view this file from DB.
    I require assistance on how to upload PDF file into BLOB, and how i can later view this inside the browser window, using APEX
    thanks

    Maybe this blog post can help you.
    Regards,
    Sergio

  • Stored PDF files with Blob

    I have being storing PDF files using Blob, but it is getting very time consuming to access these files again.
    Is there a better way of doing it? Is there a right way of doing it? I do not need to search inside the PDF, but I do need to access them either inside the Database or outside.
    Thank You for nay help

    I have a need to store PDF files that are documents that will complement process that my systems creates. And I need that those PDF files be accessible from inside my system, I do not need to search insede them because they will be stored by subject inside another subject, therefore whoever need the files will know were to find it, but to store and to access it is taking longer and longer as more files are added to the first thead.

  • Getting a PDF file in BLOB variable

    Hi Forum,
    I want to get a PDF file in BLOB variable from DB server.
    Further I will pass that variable to a procedure; in that procedure that variable will be inserted into a table.
    I have called procedure (inserting BLOB into a table) is ready.
    Can someone advice?
    thanks,
    regards.

    user573927 wrote:
    Hi Forum,
    I want to get a PDF file in BLOB variable from DB server.
    Further I will pass that variable to a procedure; in that procedure that variable will be inserted into a table.
    I have called procedure (inserting BLOB into a table) is ready.
    Can someone advice?It's all fine you saying what you want, but how about telling us what you've already done and where it's going wrong

  • How to save book in pdf tiff 300 dpi? with these steps file -print book- PDF- save PDF to folder as TIFF 300 dpi does not work

    how to save book in pdf tiff 300 dpi?
    with these steps file -print book- PDF- save PDF to folder as TIFF 300 dpi does not work

    Hi pissedadobeuser,
    Does this issue occur with any particular web page?
    Are you able to print the webpage to 'Adobe PDF' to convert it to pdf.
    Which Browser version, OS version and Acrobat version are you using?
    Regards,
    Rave

  • PDF saves as gray blur

    I just bought a new MacBook Pro. I have tried to save pdf(s) after a scan and in Photoshop. They all look like a gray blur. There is no hint of the design file. Help!

    Now it wont even open something I just downloaded.It I update it will it change my toolbar or anything on my pc?Thank you.Maureen
           From: sukritd15 <[email protected]>
    To: MAUREEN SMITH <[email protected]>
    Sent: Friday, February 20, 2015 2:24 AM
    Subject:  PDF saves as content of last file sent
    PDF saves as content of last file sent
    created by sukritd15 in Creating, Editing & Exporting PDFs - View the full discussionHi Maureen , Is it happening with all the word 365 doc? Which version of Acrobat are you using?If it is not the latest version ,try updating it to the latest version ,i.e Acrobat 11.0.10Launch Acrobat>Navigate to Help>Check for Updates I believe the PDF producer is Acrobat and not Microsoft. Please share the document with us so that we can check at our end. RegardsSukrit Dhingra If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7213183#7213183 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7213183#7213183 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Creating, Editing & Exporting PDFs by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • PDF saves as content of last file sent

    Everytime I save a word 365 doc into a pdf it turns out to be the contents of the last pdf with this name (but date in doc file name changed). I even restarted my pc & updated it, but it doesn't help.
    I have windows 8.1, Microsoft 365, internet explorer, and a pc.

    Now it wont even open something I just downloaded.It I update it will it change my toolbar or anything on my pc?Thank you.Maureen
           From: sukritd15 <[email protected]>
    To: MAUREEN SMITH <[email protected]>
    Sent: Friday, February 20, 2015 2:24 AM
    Subject:  PDF saves as content of last file sent
    PDF saves as content of last file sent
    created by sukritd15 in Creating, Editing & Exporting PDFs - View the full discussionHi Maureen , Is it happening with all the word 365 doc? Which version of Acrobat are you using?If it is not the latest version ,try updating it to the latest version ,i.e Acrobat 11.0.10Launch Acrobat>Navigate to Help>Check for Updates I believe the PDF producer is Acrobat and not Microsoft. Please share the document with us so that we can check at our end. RegardsSukrit Dhingra If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7213183#7213183 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7213183#7213183 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Creating, Editing & Exporting PDFs by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Share PDF Save Presets

    I'm looking for a simple way to share PDF save presets.  Ideally, some kind of package I can email to both Mac and PC users for use in both Acrobat Pro XI and Illustrator CS6.  Would likely be used mostly in saving .ai to PDFs in Illustrator.
    Manually describing save settings through email always leads to user-inaccuracy.  Would be great if there was a file type that, when opened, just plugs itself into relevant programs with PDF export or save options.
    Would really appreciate some help on this!

    I made a custom PDF preset called HQS_150ppi. It's been saved into the path I wrote about. Note the .joboptions extension:
    In InDesign CS6, it's shown in the Export > Adobe PDF (Print) dialog box or File > Adobe PDF Presets. In Illustrator CS6, it's shown in Save As > Adobe PDF (pdf) dialog box or Edit > Adobe PDF Presets:

Maybe you are looking for

  • Songs are not playing from the beginning of the track

    When using the shuffle feature on iTunes some of the songs songs that are played do not begin from the start of the track. Others start fine, I have no idea why this should be the case. Can anyone please advise? Thanks

  • Content Server URL Generation expiration parameter

    Hello, I'm using a content server to store documents. When i need to retrieve files, the expiration parameter on the URL is automaticaly set to 1 day . Where i can change that? Is it possible? Regards, Joao

  • How to preserve the encoding

    Hi, I need to convert a string with the utf-8 encoding to an array of bytes. I have tried to do the convertion with getBytes("UTF-8") and getBytes(). The encoding is lost in either ways. What is the right way to perserve the encoding? Thanks.

  • Cisco 2960 Series Switch Architecture

    Hi all, I wanted to know if there is a document or an article which describes 2960 series architecture specifically for model WS-C2960-24-S as there is for 2600 series in the following link: http://www.cisco.com/c/en/us/support/docs/routers/2600-seri

  • Plzzz helpp meee!!!

    On ma ipod it was written that do not disconnect suddenly the lights went off and when I saw my ipod I lost all my songs then I tried again and when ever I connect my ipod a message comes that Itunes: itunes.exe-corrupt file. The file or directory \i