How to save pdf in APEX 3.0

is there a way to save the pdf output into APEX database in ver 3

Hi,
based on Marc's suggestion to use UTL_HTTP to get the PDF I played around a little bit. But I didn't try to directly communicate with the report server which would require to send and XML stream which I would have to generate, I took a shortcut and thought why shouldn't APEX do the hard work :-)
1) Create a table with a BLOG, eg.
CREATE TABLE TESTPDF (PDF_REPORT BLOB);2) Set the "Static ID" region property to a value.
3) Load the below procedure into your application schema
3) Call the procedure getPDF in one of your page processes.
CREATE OR REPLACE PROCEDURE getPDF
  ( pStaticRegionId IN VARCHAR2
IS
    vRegionId  APEX_APPLICATION_PAGE_REGIONS.REGION_ID%TYPE;
    vReportURL VARCHAR2(255);
    vBlobRef   BLOB;
    vRequest   Utl_Http.req;
    vResponse  Utl_Http.resp;
    vData      RAW(32767);
BEGIN
    -- get internal region id of the report region
    SELECT REGION_ID
      INTO vRegionId
      FROM APEX_APPLICATION_PAGE_REGIONS
     WHERE APPLICATION_ID = Apex_Application.g_flow_id
       AND PAGE_ID        = Apex_Application.g_step_id
       AND STATIC_ID      = pStaticRegionId
    -- build URL to call the report
    vReportURL := 'http://apex.oracle.com/pls/otn/f?p='||
                  Apex_Application.g_flow_id      ||':'||
                  Apex_Application.g_step_id      ||':'||
                  Apex_Application.g_instance     ||':'||
                  'FLOW_XMLP_OUTPUT_R'||vRegionId||'_en';
    -- get the blob reference
    INSERT INTO TESTPDF
      ( PDF_REPORT
    VALUES
      ( Empty_Blob()
    RETURNING PDF_REPORT INTO vBlobRef;
    -- get the pdf file from APEX by simulating a report call from the browser
    vRequest := Utl_Http.begin_request(vReportUrl);
    Utl_Http.set_header(vRequest, 'User-Agent', 'Mozilla/4.0');
    vResponse := Utl_Http.get_response(vRequest);
    LOOP
        BEGIN
            -- read the next junk of binary data
            Utl_Http.read_raw(vResponse, vData);
            -- append it to our blob for the pdf file
            Dbms_Lob.writeAppend
              ( lob_loc => vBlobRef
              , amount  => Utl_Raw.length(vData)
              , buffer  => vData
        EXCEPTION WHEN Utl_Http.END_OF_BODY THEN
            EXIT; -- exit loop
        END;
    END LOOP;
    Utl_Http.end_response(vResponse);
end getPDF;Haven't really be able to test the code with a real APEX report, because apex.oracle.com doesn't allow to load a page which references utl_http and I don't have access to another APEX instance right now. But I have tested that the utl_http code and the storage into the blob works with some other URL.
So if anybody could try out...
BTW, the above code should only be used as an example. I would suggest to pass the BLOB reference as parameter to the procedure and not do the insert directly in the procedure. That way you can use it for several different applications/tables.
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/

Similar Messages

  • How to save pdf file in database

    Dear All,
    my application is forms 6i and database is 8i,requirement is that how to save pdf file in database and users can view through forms

    I'll apologize up front for the length of this post. I have a few database procedures I created that write a file to a BLOB column in a table as well as retrieve the BLOB from the column after it stored there. I have successfully stored many different types of binary file to the database using these procedures - including PDF files. I have not used these procedures in a Form so I can confirm that they will work, but theoretically they should work. I'm including the code for each procedure in this posting - hence the apology for the long post! :-)
    Also, since these procedures reside on the database you will need to use Forms TEXT_IO built-in package to write your file to the server before you can use these procedures to store and retrieve the file from the database.
    These procedures reads and writes a binary file to a table called "LOB_TABLE." You will need to modify the procedure to write to your table.
    -- Author :  Craig J. Butts (CJB)
    -- Name   :  load_file_to_blob.sql
    --        :  This procedure uses an Oracle Directory called "IN_FILE_LOC".  If you
    --           already have a directory defined in the database or would prefer to use
    --           a different Directory name, make sure you modify line 21 to reflect the
    --           new Directory name.
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE load_file_to_blob (p_filename IN VARCHAR2) IS
       out_blob    BLOB;
       in_file     BFILE;
       blob_length INTEGER;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- set the in_file
       in_file := BFILENAME('IN_FILE_LOC',p_filename);
       -- Get the size of the file
       dbms_lob.fileopen(in_file, dbms_lob.file_readonly);
       blob_length := dbms_lob.getlength(in_file);
       dbms_lob.fileclose(in_file);
       -- Insert a new Record into the tabel containing the
       -- filename specified in P_FILENAME and a LOB_LOCATOR.
       -- Return the LOB_LOCATOR and assign it to out_blob.
       INSERT INTO lob_table (filename, blobdata)
          VALUES (p_filename, EMPTY_BLOB())
          RETURNING blobdata INTO out_blob;
       -- Load the file into the database as a blob.
       dbms_lob.open(in_file, dbms_lob.lob_readonly);
       dbms_lob.open(out_blob, dbms_lob.lob_readwrite);
       dbms_lob.loadfromfile(out_blob, in_file, blob_length);
       -- Close handles to blob and file
       dbms_lob.close(out_blob);
       dbms_lob.close(in_file);
       commit;
       -- Confirm insert by querying the database
       -- for Lob Length information and output results
       blob_length := 0;
       BEGIN
          SELECT dbms_lob.getlength(blobdata) into blob_length
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data Found';
       END;
       vErrMsg := 'Successfully inserted BLOB '''||p_filename||''' of size '||blob_length||' bytes.';
       dbms_output.put_line(vErrMsg);
    END;
    -- Author   :  Craig J. Butts (CJB)
    -- Name     :  write_blob_to_file.sql
    -- Descrip  :  This procedure takes a BLOB object from a database table and writes it
    --             to the file system
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE write_blob_to_file ( p_filename IN VARCHAR2 ) IS
       v_blob      BLOB;
       blob_length INTEGER;
       out_file    UTL_FILE.FILE_TYPE;
       v_buffer    RAW(32767);
       chunk_size  BINARY_INTEGER := 32767;
       blob_position INTEGER := 1;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- Retrieve the BLOB for reading
       BEGIN
          SELECT blobdata
            INTO v_blob
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data found';
       END;
       -- Retrieve the SIZE of the BLOB
       blob_length := DBMS_LOB.GETLENGTH(v_blob);
       -- Open a handle to the location where you are going to write the blob
       -- Note:  The 'WB' parameter means "Write in Byte Mode" and is only
       --          available in the UTL_FILE pkg with Oracle 10g or later.
       --        USE 'W' instead for pre Oracle 10q databases.
       out_file := UTL_FILE.FOPEN('OUT_FILE_LOC',p_filename, 'wb', chunk_size);
       -- Write the BLOB to the file in chunks
       WHILE blob_position <= blob_length LOOP
          IF ( ( blob_position + chunk_size - 1 ) > blob_length ) THEN
             chunk_size := blob_length - blob_position + 1;
          END IF;
          dbms_lob.read(v_blob, chunk_size, blob_position, v_buffer );
          UTL_FILE.put_raw ( out_file, v_buffer, TRUE);
          blob_position := blob_position + chunk_size;     
       END LOOP;  
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • How to save Pdf form localy without internet

    How to save Pdf form localy without internet?
    I thought in the beginning about advanced user rights and pure saving them on adobe reader but i saw legal notes about 500 user who can legaly save it localy and answer to me (bu they can`t answer to my client who paid me for doing this form).
    Other thing is to do Air Application which would collect data from Pdf Form and save it (localy without internet) to use it later.
    I thought about that second possibility but i can`t find any clue to do it myself.
    Any help will be appreciated...

    Hi,
    Are you downloading responses as PDF forms after forms are submitted? If so, FormsCentral doesn't provide an option to exclude empty fields and you won't be able to save PDF forms without empty fields.
    You can use this form to "vote" on popular feature requests, or to add a new one of your own:
    https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
    Thanks,
    Wenlan

  • How to save .pdf file using office word and excel

    Can someone help me how to save .pdf files using office word and excel?  I reinstalled my adobe 7.0 pro in my new pc and before I was able to do it but with my old pc.

    For anything after Office 2003, you have to print to the Adobe PDF printer. If you installed AA 7 on OS newer than XP, you may have to do a workaround to get it to work. With later versions of WORD you can always use the MS plugin for creating PDFs.

  • How to save PDF form without empty fields ?

    Hello,
    I try to find how to save PDF forms after a school registration but without empty fields because i have lots of relation in my Form but i haven't.
    Is it possible and how ?
    Thanks

    Hi,
    Are you downloading responses as PDF forms after forms are submitted? If so, FormsCentral doesn't provide an option to exclude empty fields and you won't be able to save PDF forms without empty fields.
    You can use this form to "vote" on popular feature requests, or to add a new one of your own:
    https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
    Thanks,
    Wenlan

  • How to remove a hidden text in pdf file with Acrobat Pro 9. How to save pdf file and remove hidden text?

    I
    I made this file in indesign, the highlited empty spaces indicates that their is a hidden text and it pop up when searching for some words in pdf file. so how can I save pdf file to keep only the seen text ???

    Dear lrosenth,
    I went through some codes/suggestions in internet and I found that I need to have cmap file and cid font file for the respective font since pdf doesn't support unicode fonts directly.
    Can you help me to know where can I get cmap file and cid font file for tamil language font Latha(TrueType) microsoft font.
    Regards,
    Safiq

  • How to Save Pdf file in a particular format

    Hi Experts,
                        Can anybody tell me how to save a pdf file in a particular format,My requirement is i have a print button in webdynpro ,when ever user clicks on print ,adobe form is opened ,if user clicks on save .Form is saving with adobe form name .My requirement is it should be saved as ID NO.Date.Pdf  form lets Id is 0456 ,form should be saved as 0456.040614.pdf format, Thanks in Advance
    Regards
    Sandesh

    Hi Sandesh,
    Please provide the complete code from print & save button.
    Thanks & Regards,
    Balamurugan G

  • Quick Tip: How to save PDF forms in Adobe Reader X | Acrobat X Tips & Tricks | Adobe TV

    This quick tip looks at the differences between a basic PDF form and a Reader-enabled PDF form and how to save either PDF form using Acrobat Reader X.
    http://adobe.ly/GJzFxV

    You have not explained how to change the document into an "_distributed.pdf that has the ability to be saved.  That was the least helpful video that I have ever seen

  • How to save PDF files on an iPad files

    How do I save PDF files onto an iPad?

    There are several common ways to do this:
    1) Email the files to yourself and choose "Open In" from the mail application by long pressing on the attachment(s)
    2) Use a file sharing service like box.net, dropbox, gdrive or skydrive and choose "open in" from those applications
    3) Use iTunes as I describe in response to this thread: http://forums.adobe.com/thread/992991

  • How to save PDF file in a particular shared location

    Hi All,
    I am trying to save generated PDF file in a particular location like C:/Documents and Settings/FolderName/My Documents/test.png.
    But Its givinhg following error.
    [ERROR] [Image_Saver_0]ImageSaver: Access to the file path /C:/Documents and Settings/FolderName/My Documents/test.png is not allowed .
    I am Using Image Saver action block.
    To this passing PDF_Document output as Input to "Encoded image" of Image saver action block.
    passing  path as above in "Path" of Image saver action block.
    MII version :14.0 SP4.
    Can anybody suggest me how to give path to store PDF files in a particular location.
    Thanks&Regards,
    Rajee .

    Hello  Hari,
    Thanks for your reply.
    I am  trying to save currently on my local machine.
    I also tried as suggested by Raman ,but its not working.
    If I am trying to save in server machine, I am getting different error like
    [ERROR] [Image_Saver_0]ImageSaver: \\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password) Exception: [\\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password)] ".
    Folder name "Temp" is already created in this machine.
    Path I am giving like "\\01hw601622\temporaryshare\Temp\test.png" in my Image saver action block.
    My transaction is like this.
    Kindly suggest me if I am wrong.
    Regards,
    Rajee Vuta.

  • How to save pdf file(path) in oracle db

    Hi all,
    we are using forms 10g. the requirement is user can upload the pdf file from the forms. the pdf file should store in the server folder and the path can store in the db table field. when ever the user wish to download that pdf based up on the unique pdf name that should be open or save on client machine.
    can anybody help me how to do this
    Thank you

    Hi Amatu Allah,
    thank you for your reply
    i have the code based upon the webutil functions but it is not working can u pls help me
    Here---B8 is Block name
    if :toolbar.li_mode in('M') then
         if :b8.pdf_loc1 is not null then          
    declare
    l_success boolean;
    BEGIN
         mesg(1);
    l_success := webutil_file_transfer.Client_To_DB_with_progress
    (:b8.pdf_loc1-------------------------------------------------------------------------------------source file location,
    't002pod_pdf', ---------------------------------------------------------------------------------table name
    'pdf',-----------------------------------------------------------------------------------------------column name
    'doc_no = :b8.doc_no',---------------------------------------------------------------------doc_no is field
    'Upload to Database in progress',
    'Please wait',
    false,
    null
    if l_success
    then
    message('File uploaded successfully into the Database');
    else
    message('File upload to Database failed');
    end if;
    exception
    when others
    then
    message('File upload failed: '||sqlerrm);
    END;
    else
         mesg('Plese Select The File name');
         go_item('B8.pdf_open');
         end if;
    end if;
    ---------------------------------------------------------------------WEBUTIL FUNCTION BODY------------------------------------------------------------------------
    FUNCTION Client_To_DB_With_Progress
    ( clientFile in VARCHAR2,
    tableName in VARCHAR2,
    columnName in VARCHAR2,
    whereClause in VARCHAR2,
    progressTitle in VARCHAR2,
    progressSubTitle in VARCHAR2,
    asynchronous in BOOLEAN default FALSE,
    callbackTrigger in VARCHAR2 default NULL) return BOOLEAN is
    BEGIN
    return UploadInt
    ( clientFile,
    tableName,
    columnName,
    whereClause,
    true,
    true,
    progressTitle,
    progressSubTitle,
    asynchronous,
    callbackTrigger);
    END Client_To_DB_With_Progress;
    -- Internal implementations ----
    FUNCTION UploadInt ( clientFile in VARCHAR2,
    spec1 in VARCHAR2,
    spec2 in VARCHAR2,
    spec3 in VARCHAR2,
    toDB in BOOLEAN,
    withProgress in BOOLEAN,
    progressTitle in VARCHAR2,
    progressSubTitle in VARCHAR2,
    asynchronous in BOOLEAN default FALSE,
    callbackTrigger in VARCHAR2 default NULL) return BOOLEAN is
    clientFileSize PLS_INTEGER := 0;
    clientFileChunks PLS_INTEGER := 0;
    clientFileInfo VARCHAR2(1000 char);
    result BOOLEAN := FALSE;
    dataBuffer VARCHAR2(32767);
    ignore VARCHAR2(2);
    jobj ORA_JAVA.JOBJECT;
    lastErrorCode PLS_INTEGER;
    lastErrorArgs VARCHAR2(1000);
    encodedFile ORA_JAVA.JOBJECT;
    ftemp TEXT_IO.FILE_TYPE;
    tempFileName VARCHAR2(512);
    bool_ignore boolean;
    BEGIN
         mesg('inside function--2');
    -- Client file cannot be null
    if clientFile is null then
    raise CLIENT_FILE_NULL;
    end if;
    -- AS file cannot be null. AppsServerFileWriter also handles this. Better to handle here.
    if NOT toDB AND spec1 is null then
    raise AS_FILE_NULL;
    end if;
    -- Make sure the client file to be uploaded exists and readable
    -- If we don't raise exception here, we end up creating an empty file on DB or AS
    if NOT webutil_file.file_is_readable(clientFile)
    OR webutil_file.file_is_directory (clientFile) then
    raise FILE_NOT_FOUND;
    end if;
    -- First check to see if a transfer is not currently happening
    if In_Progress then
    raise AGENT_BUSY;
    end if;
    -- reset the target
    m_toDB := toDB;
    -- Set up the file info
    clientFileInfo := clientFile||'|0|'||
    WEBUTIL_UTIL.BoolToStr(asynchronous,'A|','S|')||
    WEBUTIL_UTIL.BoolToStr(withProgress,'Y|','N|')||
    progressTitle||'|'||
    progressSubTitle;
    WebUtil_Core.setProperty(WebUtil_Core.WUT_PACKAGE,'WUT_FILE_INFO', clientFileInfo);
    mesg('clietfileinfo: '||clientFileInfo);
    -- get the size and chunk info of the client side file
    clientFileInfo := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_FILE_INFO');
    clientFileSize := DelimStr.getNumber(clientFileInfo,1,true,'|');
    mesg('size: '||clientFileSize);
    if clientFileSize = 0 then
    raise CLIENT_FILE_EMPTY;
    -- no need to close AS file since it is not yet opened.
    end if;
    clientFileChunks := DelimStr.getNumber(clientFileInfo,2,true,'|');
    -- Set up the Open command
    if toDB then
    if not m_DBEnabled then
    raise TRANSFER_FORBIDDEN;
    end if;
    if not WebUtil_DB_Local.openblob(spec1, spec2, spec3,'W', m_maxTransferSize) then
    WebUtil_core.Error(WebUtil_Core.WUT_PACKAGE,WebUtil_DB_Local.getLastError,
    'WEBUTIL_FILE_TRANSFER.uploadInt');
    raise READWRITE_ERROR;
    end if;
    else
    if not WebUtil_Core.checkJava then
    raise NO_JAVA;
    end if;
    if not checkASACL(spec1,m_writeACL) then
    raise TRANSFER_FORBIDDEN;
    end if;
    jobj := JAVA_APPSERV_WRITER.NEW;
    if not JAVA_APPSERV_WRITER.openFile(jobj,spec1) then
    lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
    lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
    WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
    'WEBUTIL_FILE_TRANSFER.uploadInt',lastErrorArgs);
    raise READWRITE_ERROR;
    end if;
    end if;
    -- Is this Async? if So we do nothing more here just set the callback and kick it off
    if asynchronous then
    -- set callbackTrigger even if it is null. we will take care
    -- before calling
    WebUtil_Core.SetCallbackTrigger(-1,callbackTrigger);
    ignore := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_TRANSFER');
    m_chunks := clientFileChunks;
    m_fileSize := clientFileSize;
    m_uploadSucceeded := NULL;
    if not toDB then
    m_persistObj := ORA_JAVA.NEW_GLOBAL_REF(jobj);
    end if;
    result := true;
    else
    if NOT toDB then
    encodedFile := JAVA_FILE.createTempFile('WUAS','.enc');
    tempFileName := JAVA_FILE.getPath(encodedFile);
    end if;
    -- loop through each chunk
    for i in 1..clientFileChunks LOOP
    dataBuffer := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_TRANSFER',false);
    if (WebUtil_Core.isError) or (dataBuffer is null) then
    raise AGENT_BUSY;
    end if;
    -- Write to the correct place
    if toDB then
    WebUtil_DB_Local.WriteData(dataBuffer);
    else
    ftemp := TEXT_IO.FOPEN(tempFileName, 'W');
    TEXT_IO.PUT(ftemp, dataBuffer);
    TEXT_IO.FCLOSE(ftemp);
    -- if not JAVA_APPSERV_WRITER.WriteData(jobj,dataBuffer) then
    if not JAVA_APPSERV_WRITER.decodeBASE64File(jobj,tempFileName) then
    lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
    lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
    WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
    'WEBUTIL_FILE_TRANSFER.UploadInt',lastErrorArgs);
    raise READWRITE_ERROR;
    end if;
    end if;
    end LOOP;
    if toDB then
    if WebUtil_DB_Local.CloseBlob(clientFileSize) then
    result := true;
    else
    WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,WebUtil_DB_Local.getLastError,
    'WEBUTIL_FILE_TRANSFER.UploadInt');
    end if; -- close
    else
    bool_ignore := JAVA_FILE.DELETE_(encodedFile);
    if JAVA_APPSERV_WRITER.CloseFile(jobj,clientFileSize) then
    result := true;
    else
    lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
    lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
    WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
    'WEBUTIL_FILE_TRANSFER.UploadInt',lastErrorArgs);
    raise READWRITE_ERROR;
    end if;
    end if;
    end if; -- async
    return result;
    EXCEPTION
    when CLIENT_FILE_EMPTY then
    WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,133,'WEBUTIL_FILE_TRANSFER.UploadInt', clientFile);
    return false;
    when CLIENT_FILE_NULL then
    WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,130,'WEBUTIL_FILE_TRANSFER.UploadInt');
    return false;
    when AS_FILE_NULL then
    WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,117,'WEBUTIL_FILE_TRANSFER.UploadInt');
    return false;
    when FILE_NOT_FOUND then
    WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,129,'WEBUTIL_FILE_TRANSFER.UploadInt', clientFile);
    return false;
    when TRANSFER_FORBIDDEN then
    WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,121,'WEBUTIL_FILE_TRANSFER.UploadInt');
    return false;
    when AGENT_BUSY then
    WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,116,'WEBUTIL_FILE_TRANSFER.UploadInt');
    return false;
    when READWRITE_ERROR then
    return false;
    when NO_JAVA then
    return false;
    when WebUtil_Core.BEAN_NOT_REGISTERED then
    WebUtil_Core.ErrorAlert(WebUtil_Core.getImplClass(WebUtil_Core.WUT_PACKAGE)
    ||' bean not found. WEBUTIL_FILE_TRANSFER.UploadInt will not work');
    RAISE FORM_TRIGGER_FAILURE;
    when WebUtil_Core.PROPERTY_ERROR then
    RAISE FORM_TRIGGER_FAILURE;
    END UploadInt;

  • How to Save pdf file in the BLOB field in the database

    I have to save a pdf file which is on the client machine to save in the database column of type BLOB. How can i do that?

    LostWorld wrote:
    I have to save a pdf file which is on the client machine to save in the database column of type BLOB. How can i do that?PL/SQL code cannot hack across the network. break into that client machine, and read that PDF file from the client's harddrive.
    There is a very fundamental client-server principle at stake here - the purpose of the client. What is the purpose of the client? Amongst others, it is to interface with the client hardware and peripherals and devices. Like reading the client keyboard and sending that to the server. Or reading data from the sever and rendering it on the client's display device. Or to receive CSV data from the server and writing it to a local file.
    It's purpose is also to read a local file, like a PDF file, and submit that file's contents to the server for storage.
    The following pseudo code explains the basic principle:
    client
      // call oracle to create a LOB
      ExecuteSQL( 'DBMS_LOB.CreateTemporary( .. )' )
      open file( fileHandle )
      while not EOF( fileHandle )
        // read data from the file
        read file( fileHandle, buffer )
        // write this buffer to the LOB in Oracle
        ExecuteSQL( 'DBMS_LOB.writeAppend( .. )' )
      end while
      close file( fileHandle )
      // now tell Oracle what to do with that LOB
      ExecuteSQL( '...' )
      .. etc..Thus the client:
    a) creates a LOB in Oracle via a PL/SQL call
    b) passes data from the client and appends it to the LOB
    c) tells Oracle what to do with LOB, such as inserting it into a table

  • How to save pdf files to a folder on my tablet?

    How do I save an edited pdf document to a folder on my 'desktop', where I can find it again?  I am using an android tablet.

    I am not sure what you mean by saving on the 'desktop'. Are you trying to share the file across devices?
    However, in case you want to save a file in a different folder in Adobe Reader for Android, you can go tap on the 'Documents' tab. On the top toolbar, you will see an 'Edit' option. Tap on it and select the file(s) you want to move. Now, on the top toolbar, you would see an icon which looks like a folder with an arrow. Tap on this and now you can enter the desired location where you want to save this file

  • HOW TO save PDF Forms in Acrobat Reader

    Hi,
    I have made a timesheet form in Acrobat Professional. The idea with this is to put it on our intranet site and let my collegues register their working hours there (today we have an excel form).
    The big advantage in using the PDF Form instead of the excel is the digital signatures function. This makes it possible for signing also when not in house - perfect in every aspect but....
    ...my collegues would like to save the timesheet before sending it. Printing is of no option since they are out on the road most of the time.
    In Adobe Professional this is no problem but in Acrobat Reader you cannot save anything but an empty form. I have searched for security levels in the form but I cannot find anything. Howcome can't you save the document you have made as a copy in Reader? Is there a way of getting around this issue? I cannot put all collegues on the Adobe Professional program, it would be too expensive.
    Please help! I hate having to go back to excel because of this malfunction.
    Best regards from Sweden
    Annika

    Sorry, I was wrong, we don't have the professional suite. We purchased the Creative Suite 3 Design standard. However the Adobe Acrobat program itself is version 8 professional.
    From what I understand the only way to make the form savable in Adobe reader for my collegues is that I buy also the Adobe LiveCycle Reader Extensions.
    The price for this extension is 1500 USD.
    To try to explain once more what I want to be done...
    I am making forms for my collegues, where they can fill in their travelling costs, their working hours etc etc. This they have to do once an month and then send to their boss. BUT my collegues have only Adobe Acrobat reader, and with that program you can only save an empty form, ie the form empties itself when saving. But of course my collegues wants a copy of their working hours, travelling costs saved on their own computer. Prints are not acceptable.
    Please help, I can't figure out how to open up the saving rights for my collegues in my adobe professional program...
    Sorry for beeing so dumb, but I don't understand...

  • How to save PDF with fields so someone can fill out form and send it to printer

    Using Adobe Acrobat X for Mac, I built a pdf template with fields for
    sending an assortment of Business Card files to the printer to print.
    How do I save the file so my brother/client can start typing in different
    names, job titles, and contact info and send them to a printer.
    Thanks,
    jsorlean

    Create your form.
    go to advanced menu
    choose the item about Reader Rights
    when open set what you want Reader to be allowed to do.
    Once set and saved the can fillout, save, email but they can not change the actual form itself just the contents they added.
    Not there is a cap of 500 hundred instances per different PDF.
    (Please note information is given by an Experienced User of Acrobat. I am not an employee of Adobe.)

Maybe you are looking for