Inserting pdf file into database

I am trying to insert a adobe pdf file into a multimedia field in my database and while I can get it to cut and past I would like it to auto size into the box that I have defined for it. I have many records to compile, thousands. Some of these pdf files have several pages and it would be nice to be able to scroll through thier content in that multimedia field box. How do I do this? Is it possible? If not I assume I am stuck with making a link that opens the file. I assume this is possible. How do I do this?
Thanks in Advance,
Shane

Hello
You may enter the Layout > Layout mode to enlarge the area dedicated to the multimedia field.
But there is no provision for an autosize feature.
The link soluce is not available in databases.
I mimic it true the "enhanced database" structure requiring an AppleScript.
You may find the script on my temp iDisk or in the Peggy's one which is organised well.
Peggy's idisk
Yvan KOENIG (from FRANCE 20 octobre 2005 12:20:17)

Similar Messages

  • Inserting PDF file into Clob

    Hi,
    I tried inserting PDF file into a CLOB column , in the below example l_bfile is a bfile datatype.
    and I'm inserting l_bfile to CLOB column.
    l_bfile := bfilename('C:\test', 'test.pdf');
    But It is throwing below error:
    ORA-06550: line 9, column 42:
    PL/SQL: ORA-00932: inconsistent datatypes: expected NUMBER got FILE
    ORA-06550: line 9, column 1:
    PL/SQL: SQL Statement ignored
    Please advise me on this.
    thanks,
    Jagu
    Edited by: user11221603 on Oct 11, 2012 6:18 AM

    Hi,
    Check this thread: How to store PDF file in BLOB column without using indirect datastore
    Regards.
    Al

  • I want to insert .pdf files into a "Master" .pdf file at pre-determined intervals - how do I do this?

    I want to insert .pdf files into a "Master" .pdf file at pre-determined intervals - how do I do this?

    Hi markm11762689,
    When you insert pages, you can determine whether they go before or after the first or last page, or a page number that you specify.
    If you're inserting multiple files at once, they will all be inserted in the same spot that you specify in the Select File to Insert dialog box.
    There may be a way to handle this programmatically, and there are some very clever folks who visit these forums regularly. Let's see if they chime in...
    Best,
    Sara

  • How to batch upload PDF files into database BLOB

    Hello.
    I have a requirement to batch upload PDF files into BLOB column of an Oracle 8.1.7 table from Forms 6i Web. The content of the blob column (ie. the PDF content) MUST be displayable from all client software (eg. Oracle Web forms, HTML forms, etc.)
    Our environment is
    Middle-tier is 9iAS on Windows/2000
    Database is Oracle 8.1.7.0.0 on VMS
    Oracle Web Forms 6i Patch 10
    Basically my Oracle web form program will display a list of PDF files to upload and then the user can click on the <Upload> button to do the batch upload. I have experimented the following approaches but with no luck.
    1. READ_IMAGE_FILE forms built-in = does NOT work because it cannot read PDF file. I got error FRM-47100: Cannot read image file
    2. OCX and OLE form item = cannot use this because it does NOT work on the Web. I got error FRM-41344 OLE object not defined
    3. I cannot use DBMS_LOB to do the load because the PDF files are not in the database machine.
    4. Metalink Note 1682771.1 (How to upload binary documents back to database blob column from forms). When I used this, I got ORA-6502 during the hextoraw conversion. In using this solution, I have downloaded a bin2hex.exe from the Google site. I've noticed that when I looked at the converted HEX file, each line has the character : (colon) at the beginning of each line. I know the PDF file has been converted correctly to HEX format because when I convert the HEX file back to BIN format using hex2bin.exe, I'm able to display the converted bin file in Acrobat Reader. When I removed the : (colon) in the HEX file, I did NOT get the ORA-6502 error but I CANNOT display the file in Acrobat Reader. It gives an error "corrupted file".
    5. upload facility in PL/SQL Web toolkit - I tried to automatically submit the html form (with htp.p) but it does NOT load the contents of the file. I called the URL from Oracle forms using web.show_document. There seems to be issues with Oracle Web forms (JInitiator) and HTML (+ htp.p).
    The other options I can think of at this point are:
    1. Use SQL*Loader to do the batch upload via SQL*Net connection and use HOST() built-in from Oracle Webforms to execute SQL*Loader from the 9iAS.
    2. Write a Visual Basic program that reads a binary file and output the contents of the file into a byte array. Then build a DLL that can be called from Oracle webforms 6i via ORA_FFI. I don't prefer this because it means the solution will only work for Windows.
    3. Write a JSP program that streams the PDF file and insert the contents of the PDF file into blob column via JDBC. Call JSP from forms using web.show_document. With this I have to do another connection to the database when I load the file.
    4. Maybe I can use dbms_lob by using network file system (NFS) between the application server and VMS. But this will be network resource hungry as far as I know because the network connection has to be kept open.
    Please advise. Thank you.
    Regards,
    Armando

    I have downloaded a bin2hex.exe from the Google site.
    ... each line has the character : (colon) at the
    beginning of each line. I'm afraid it isn't a correct utility. I hope you'll find the source code of a correct one at metalink forum:
    Doc ID: 368771.996
    Type: Forum
    Subject: Uploading Binary Files: bin2hex and hex2bin do not reproduce the same file
    There is some links to metalink notes and some example about working with BLOB at http://www.tigralen.spb.ru/oracle/blob/index.htm. Maybe it helps. Sorry for my English. If there is any problem with code provided there, let me know by e-mail.

  • Insert pdf file into another pdf file keeps getting stuck

    I am trying to insert a 5 page pdf file into another pdf file (both unsecured) and it keeps getting stuck at about 71%* conplete. I can't even get the file to show up on the screen so i can close it. Help?

    I have tried several different files, and get the same phenomenon with each one –
    1.     I open an acrobat file.
    2.     I open a WORD file.
    3.     I copy a sentence from WORD to the clipboard.
    4.     I click on View in Acrobat, Tools, Pages, other options, insert from clipboard.
    5.     Acrobat shows that it is copying, and when it gets to 67% it stops and runs and runs and then only way I can stop it is to go to the task manager and end task.
    I tried refrying with a file and that didn’t work, and I can’t imagine that Acrobat was designed so that each time I try to insert from WORD I would have to refry (even if it did work).
    Please help!
    Thank you
    Shirah
    Moadim LeSimcha, times of joy!

  • Inserting PDF files into iPhoto

    I am trying to insert separator pages for my slideshow using the article in MacWorld. All is fine til I get to the point where I need to insert the pdf into my slideshow. Below is the error I receive:
    Unreadable files: 1
    The following file could not be imported. (This file is in an unrecognized format.)
    Here is what I have done so far in regs to troubleshooting.
    Removed my iPhoto library from my shared directory to my original Pictures directory & did the batchmod that someone recommended elsewhere to make sure all my iPhoto files/dir have the correct permissions/owners.
    Deleted all references to adobe reader on my mac & reinstalled the latest & greatest (7.0.8)
    Recreated the pdf files (from the pics) after I reinstalled reader 7.0.8.
    Ran disk utils to make sure permissions were correct on my system.
    Where else do I look to see what the file formats are besides Get Info? Dh says I should resintall iPhoto, but the updates take forever even with a dsl (but then it could have something to do with my 1500 pics too
    Something is missing between Adobe & iPhoto or even OS X but I can not seem to figure it out.
    I am currently running OS X 10.3.9 (Panther), iLife 6-iPhoto version 6.0.5 (316)
    Thanks in advance for any & all help.
    Kitty
    Dual 1.3Ghz G4 1G RAM   Mac OS X (10.3.9)  

    Thanks, OT for getting back on this. I was hoping you'd respond I've been reading all the posts you've had on this subject & knew you were a resident expert.
    I had seen before that the pdf's could not be imported but I was hoping that iLife 6 now took care of that problem & according to the below linked article it appeared to.
    http://www.macworld.com/2006/12/secrets/jandigitalphoto/index.php
    Is the article incorrect that this version of iLife does not support it as the article seems to imply?
    In regs to your suggestion, I had already done exactly as you suggested sometime yesterday & the quality of the jpeg that was done as a 'save as' from preview was horrible.
    I am now in the midst of using iDVD to make my slide show. Unfortunately, the process is slower than iPhoto & I'm not remembering what I've already edited, sorted, etc etc since I've been working on this for at least 2 days now & am now doing it a 2nd time.
    I've read your posts about you saying you only use iDVD for SS & thought I'd try it. I am having a problem about the refresh rate on our video & the speed with which it is working on our mac but I don't know if that is due to the number of photos on iDVD, the fact that I am still on OS X 10.3.9 & iLife 6 is supposed to work better on Tiger, my learning curve since I've never used it or what.
    Anyways, I'll be up bright & early tomorrow working on it hoping I can get it complete & shipped out to famiy members late afternoon or evening.
    Take care & thanks,
    Kitty
    Dual 1.3Ghz G4 1G RAM   Mac OS X (10.3.9)  

  • Unable to insert pdf object into 64-bit Word 2010

    I have always been able to insert pdf files into word documents.  However, when I upgraded to the 64-bit version of Word, I started experiencing the below issue.
    My setup is: Windows 7 64-bit, Word 2010 64-bit, Adobe Acrobat 9 Pro v9.4.7.
    When I attempt to insert a pdf file into Word, I receive the following message:
    "The program used to create this object is AcroExch.  That program is either not installed on your computer or it is not responding.  To edit this object, install AcroExch or ensure that any dialog boxes in AcroExch are closed."
    I have researched this issue a great deal. 
    Previously, I found a posting which specified some registry keys to delete.  I followed these directions and it worked.  But, after installing some updates, the issue is back and I am unable to find the post specifying the registry keys to remove.
    Any help will be greatly appreciated.
    Thanks!
    Brandon

    Solution:
    Open Adobe Reader / Pro
    Go to Edit àPreferenceà General (LHS)àUncheck “Enable protected mode at startup”.
    Adobe Reader’s protected mode will be disabled
    Now try inserting Adobe document in Word, it will work.  

  • Storing PDF file into DB & restoring back to Filesystem

    Hi Everybody,
    I need to store PDF files into Database (Oracle 8.1.6 on Windows NT). This I could do using DBMS_LOB Package. Now, my problem is bringing back the PDF files to OS filesystem.
    I feel my problem will be solved if I have UTL_LOB Package Object in my Database. Where can I get the script or utility that installs the said Object in my Database. Kindly send me the script/utility if anybody has.
    Thanks & Regards,
    Durai.

    look,
    http://stackoverflow.com/questions/2347842/storing-pdf-files-as-binary-objects-in-sql-server-yes-or-no
    Please use Marked as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • How to Upload a PDF file into BLOB column in a table using 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.

    Hi,
    please, search a bit on the forum before do a question:
    Just searching by "upload blob pdf" ...
    How to batch upload PDF files into database BLOB
    Regards,
    Jose.

  • How to load PDF files into oracle database and display them in APEX

    Hi All,
    We have a requirement for loading the Loading PDF files (lots of PDf files) to the oracle database and then display the PDF files in the Oracel APEX report.
    So that User can view the PDF files. Our current APEX verison is 3.2..
    Please let me know how to implement it and where to find the sample application!
    Thanks in advanced!
    Jane

    Thanks Tony for your quick response!
    We need to load a lot of PDfs (history + current).
    I have a questions about the SQL loader. I am trying to insert a pdf file into a table by following the oracle loading sample:
    http://download.oracle.com/docs/cd/B10501_01/text.920/a96518/aload.htm
    Example Data File: loader2.dat
    This file contains the data to be loaded into each row of the table, articles_formatted.
    Each line contains a comma separated list of the fields to be loaded in articles_formatted. The last field of every line names the file to be loaded in to the text column:
    Ben Kanobi, plaintext,Kawasaki news article,../sample_docs/kawasaki.txt,
    But i don't know to where should I put my pdf file on the server.
    for example:
    ,../sample_docs/kawasaki.txt,
    Where is the file 'kawasaki.txt'??
    I try my local path, it didn't work. like c:\temp.
    then I loaded teh PDf file into our server(/findev20/olmtest/orafin/11.5.7/olmtestcomn/temp) , and In my data file. I put the path
    1, pdf_emp1,../findev20/olmtest/orafin/11.5.7/olmtestcomn/temp
    but I got the error: the system can not find the file specified.
    Where should I put the PDf files on the server and how to specify the path in the data file?
    Thanks!
    Jane

  • HT3529 How do I insert a pdf file into my message?

    How do I insert a pdf file into my message? please help!

    thank you James! I suspected that this could be the solution, but i am new to iPads and it is a pain to find a file on iPad in order to do this operation, in windows there is windows explorer and i cannot see anything like that on iPad.. any hints would be appreciated!

  • Unable to insert or drag and drop PDF file into PowerPoint 2010

    Hi all.  I am trying to drag and drop a PDF file into a power point file (PowerPoint 2010).  However, power point responded with the error "The server application, source file, or item can't be found, or returned an unknown error.  You
    may need to reinstall the server application".  I also tried to use the Insert feature "Insert --> Object --> Choose from file", yet also getting this same error message. This is what I've tried:
    a) I've tried to disabled the Adobe Protected Mode on Adobe Acrobat Reader 11, yet no luck. 
    b) Also tried on a machine got Adobe Reader 9 installed, still getting the same error message
    c) Tried to register the OLE library, no luck
    I haven't tried to re-install Office 2010.  It looks like this is a Office 2010 issue, have any one of you encountered this issue and is there a solution for it?  Drag and drop Excel and Word file into power point is working fine.  Thank you. 

    I would suggest you try a complete re-install and see if issue persists.
    I know I know, but you've already tried the Most Possible solutions (disable the protected mode/ register the OLE libray). It might worth trying a complete uninstall and re-install.
    http://www.pptfaq.com/FAQ00236_Can-t_edit_Org_Chart-_Graph-_Excel_-error_msg-_-server_application-_source_file-_or_item_can-t_be_found--.htm
    Aravindhan Battepati

  • Insert PDF into new Adobe Form - merging two PDF files into one

    Hi everyone,
    I need to enable access to archive PDF files but within a new PDF file containing header and footer.
    Request is not to change archived PDF files at all.
    I use Web Dynpro application to upload PDF file and to display new PDF file.
    I thought converting archive PDF files into JPG files and than using an 'Image Field' object to display those in a new PDF file.
    I am dealing here with PDF version 1.3 files.
    I am also having trouble converting these PDF files into JPG files. Any sugestions one this problem?
    Does anyone have any suggestion on how to deal with this concerning the fact that archive PDF files can not be changed?
    Is there some other way to merge two PDF files into one using Adobe Designer?
    Regards,
    Amel

    Hello, Lukasz:
      I am also facing similar requirement from my customer.
      And I found one useful blog, hope this blog can help you.
      http://wiki.sdn.sap.com/wiki/display/WDJava/CombinePDFfileswithWebDynproforJava
      Best regards, Nick.

  • 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!

  • Stroring the pdf file in database

    Hi,
    I am generating a pdf file from report server and in the trigger I want to push this file to Oracle database. How will I do if I do have a blob column in the database table. What could be the way inserting this Blob object into the table in the report trigger.
    Prashant

    hi
    try the following link.
    Re: Store PDF files in database.
    sarah

Maybe you are looking for

  • Upgrade Photoshop elements 9 to 12

    I can' t find any information about upgrading if you have already photoshop. Is is possible, I read but how? I have an Imac

  • Printout GR Slip when GR posted via BAPI_GOODSMVT_CREATE

    Dear all , We need to printout the slip when we do the Goods receipt with movement type 101 via BAPI_GOODSMVT_CREATE. We set the user parameter NDR with value X in the User parameters to bring the field always on in the MM transactions but when we po

  • Two phones, two computers, one account.

    We each have iPhones and seperate computers, is it possible to share one iTune account on two computers and two phones or do we need individual accounts? If individual accounts are required, how can we share music and apps?

  • Fix for android "can't delete PDF files"

    4/2013 fix for Android Adobe reader complaint: "can't find delete area of adobe". Answer: you have wrong version installed. Fix: Go to "applications manage all" and the only option for your reader, on your android, is to unistall latest updates. Afte

  • Adding text to a 3d object...(perspective question)

    Hi I have had to create a graphic of basically a cube, I now need to add text to the side of the cube to make it look as though the text is printed onto the side of the cube. Ive been trying to use the scale tool but cant seem to get it even nearly r