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

Similar Messages

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

  • How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    Hi Rave,
    InDesign cc couldn't open the script, I get an error message that it is not a supported file type.  I tried this first before using the "place multipage pdf" in my InDesign document.  The script which comes with InDesign cc works, but places the pages outside of the document.  That's what I'm trying to figure out how to do.  I had no trouble doing this in PageMaker 15 years ago.  I don't know why it doesn't work on my computer??
    Thanks,
    Yerbamansa

  • How can I get a pdf file in a word document?

    How can I get a pdf file into a word document?

    You want to insert a PDF into a Word doc, or you want to convert it?  Either way, Adobe Reader cannot do any of these.

  • Once I get a pdf file into EXCEL

    How do we convert the data into columnar spreadsheet form?

    YES
    From: David Kastendick [email protected]
    Sent: Thursday, October 04, 2012 1:07 PM
    To: roncarter
    Subject: Once I get a pdf file into EXCEL
    Re: Once I get a pdf file into EXCEL
    created by David Kastendick <http://forums.adobe.com/people/dave_m_k> in *Adobe
    ExportPDF* - View the full
    discussion<http://forums.adobe.com/message/4749880#4749880

  • Getting blank pdf files when I try to view them on computers other than my Mac

    I need some assistance.  I keep getting blank pdf files when I try to view them on anything other than my Mac.  I create them in either Illustrator or InDesign and I make sure that I select High Image Quality.  I can view them just fine in my Acrobat reader, but the minute I send them out to others or view them on a PC with Acrobat Reader 7 i can't view them.  I get this message "There was a problem reading this document (111)"  Does anyone know the solution to this problem?

    Many PC users still use older versions of Acrobat or Acrobat Reader. I know some people that absolutely refuse to update beyond Acrobat Reader 4.5, often times, that can contribute. Also if you've run PDF Optimizer and removed all the fonts. That can cause a problem.
    Also, make sure you save pdf's with the .pdf extension. As much as they say the opposite PC's need to see that extension.

  • I can't get my pdf files to open

    I cant get my pdf files to open and my hp device manager sttes it is not support so I cant use my printer.

    putterhole12 wrote:
    (1)
    I cant get my pdf files to open
    (2)
    my hp device manager sttes it is not support so I cant use my printer.
    Issues (1) and (2) are not likely to be connected.
    (1) What happens when you double-click on a PDF file?
    (2) What is the exact error message?
    Additional question: What version of Mac OS X are you using? v10.7 (Lion) by any chance?

  • How to store PDF file in BLOB column without using indirect datastore

    Hi ,
    I want to store a pdf file in a BLOB column.
    But , it should be a direct store. I cannot usre indirect datastore.
    BLOB column doesn't support indirect datastore. I get the following error.
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10581: indirect datastores cannot be used with long or lob text columns
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 365
    can anyone give me any clue onhow to manage this issue?

    Thanks This really helped.
    For other readers, I am summarising what I did.
    create table test
    id number primary key,
    docs BLOB
    create or replace directory doc_loc
    as 'c:\test';
    CREATE OR REPLACE PROCEDURE Load_BLOB_From_File (file_name in varchar2)
    AS
    src_loc bfile:= bfilename('DOC_LOC',Load_BLOB_From_File.file_name);
    dest_loc BLOB;
    begin
    insert into tkctsf15t values(1,empty_blob()) returning docs
    into dest_loc;
    dbms_lob.open(src_loc,DBMS_LOB.LOB_READONLY);
    DBMS_LOB.OPEN(dest_loc, DBMS_LOB.LOB_READWRITE);
    DBMS_LOB.LOADFROMFILE(
    dest_lob => dest_loc
    ,src_lob => src_loc
    ,amount => DBMS_LOB.getLength(src_loc));
    DBMS_LOB.CLOSE(dest_loc);
    DBMS_LOB.CLOSE(src_loc);
    COMMIT;
    end;
    show errors;
    exec Load_BLOB_From_File('test.pdf');
    exec ctx_ddl.create_preference('mylex','BASIC_LEXER');
    create index testx on test(docs) indextype is ctxsys.context
    parameters
    ('filter ctxsys.AUTO_FILTER LEXER mylex ');
    select id from test where contains(docs,'patch')>0;
    Thanks Roger once more

  • Java.lang.NullPointerException: When Get the PDF File Name

    Hi,
    i try to follow the blog on <b>Handling FileUpload and FileDownload in NetWeaver Developer Studio(NWDS) 2004S</b> on /people/rekha.malavathu2/blog/2006/12/12/handling-fileupload-and-filedownload-in-netweaver-developer-studionwds-2004s
    as i create a fileupload and i wish to get the file name and the pdf, then i to run and deploy it but i get <b>java.lang.NullPointerException</b>
    the code are as below when i click on send email button
    IPrivateEmail.IFileUploadNodeNode node = wdContext.nodeFileUploadNode();
    IPrivateEmail.IFileUploadNodeElement fileUploadEle = node.createFileUploadNodeElement();
         try{
         IWDResource resource = WDResourceFactory.createResource(wdContext.currentContextElement().getFileUploadUI().read(true), wdContext.currentContextElement().getFileUploadUI().getResourceName(), WDWebResourceType.PDF, true);
         fileUploadEle.setFileUploadAttr(resource);
         fileUploadEle.setFileUploadName(wdContext.currentContextElement().getFileUploadUI().getResourceName());
         node.addElement(fileUploadEle);
         }catch(Exception e){
         wdComponentAPI.getMessageManager().reportSuccess("ERROR"+e.getMessage());
    but i wonder which part of the code i did wrongly.. as i wish to insert into my send email code
    Properties props = new Properties();
              String host = "SMTP HOST";
              props.put("mail.smtp.host", host);
              Session session = Session.getInstance(props, null);
              MimeMessage message = new MimeMessage(session);
              Address toAddress = new InternetAddress();
              Address fromAddress = new InternetAddress();
              Address ccAddress = new InternetAddress();
              Address bccAddress = new InternetAddress();
              try
                   MimeMultipart multipart = new MimeMultipart();
                   BodyPart messageBodyPart = new MimeBodyPart();
                   if (! wdContext.currentEmailElement().getFrom().equals(""))
                        fromAddress = new InternetAddress(wdContext.currentEmailElement().getFrom());               
                        message.setFrom(fromAddress);
                   if (! wdContext.currentEmailElement().getTo().equals(""))
                        toAddress = new InternetAddress(wdContext.currentEmailElement().getTo());
                        message.setRecipient(Message.RecipientType.TO, toAddress);
                   if (! wdContext.currentEmailElement().getCc().equals(""))
                        ccAddress = new InternetAddress(wdContext.currentEmailElement().getCc());
                        message.setRecipient(Message.RecipientType.CC, ccAddress);
                   if (! wdContext.currentEmailElement().getBcc().equals(""))
                        bccAddress = new InternetAddress(wdContext.currentEmailElement().getBcc());
                        message.setRecipient(Message.RecipientType.BCC, bccAddress);
                   if (! wdContext.currentEmailElement().getSubject().equals(""))
                        message.setSubject(wdContext.currentEmailElement().getSubject());
                   if (! wdContext.currentEmailElement().getBody().equals(""))
                        messageBodyPart.setText(wdContext.currentEmailElement().getBody());
                   multipart.addBodyPart(messageBodyPart);
                   messageBodyPart = new MimeBodyPart();
                   String filename = IWDResource.getResourceName();
                   DataSource source = new FileDataSource(filename);
                   messageBodyPart.setDataHandler(new DataHandler(source));
                   messageBodyPart.setFileName(source.getName());                    
                   messageBodyPart.setHeader("Content-Type","application/pdf");
                   multipart.addBodyPart(messageBodyPart);
                   message.setContent(multipart);
                   Transport.send(message);
              catch (AddressException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (SendFailedException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (MessagingException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
    so i wonder could anyone help me out.. as i need to get the pdf filename order to put into the variable call <b>filename</b> at the send mail code.
    below is the error message
    java.lang.NullPointerException
         at com.sap.example.uploademail.Email.wdDoInit(Email.java:124)
         at com.sap.example.uploademail.wdp.InternalEmail.wdDoInit(InternalEmail.java:146)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    facing same issue.
    jdev 10.1.3.3.0, on expanding the database connection, I get a null pointer exception.
    On the testing the connection it says 'success' though.
    any inputs ?

  • Loading external (PDF)file into BLOB colum in the table.  Need urgent help.

    Hi All,
    I've currently been working on loading many external binary files (PDF) into BLOB column. After some digging, I learn that the SQL*LOADER can be used to load data from external files into table. I also got help from another forummate mentioning to use PL/SQL procedure to do so. Since I have not done anything like this before. So, my question is what is the simple approach needed to upload PDF files into a table(there is only one table containing BLOB column in my database). In addition, the LOBs can not be query-able, I wanted to list the contents of the LOBs column to make sure that I did successfully upload data into the database. How can I do that?. I do need your help. Please direct me step by step how to do so. Your help is greatly appreciated.
    Regards,
    Trang

    Once the PDF file is inserted in the PDM table, i am not able to read the PDF data from the below code, This code converts the binary data into the Character data i.e BLOB data into the CLOB, but still the data is not proper which is getting inserted PDF is proprietary format of Adobe. And you cant just read it from pl/sql. You need Adobe software installed in your client machine to view it.
    Here is an example of how to do it.
    [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:232814159006] Display PDF Stored in Database from ASKTOM 

  • How can I get Full PDF file in temporary Internet Files folder when a PDF is opened in IE?

    when a URL displaying a PDF file(http://www.google.com/Test.pdf) in internet explorer is done, the PDF file is opened in Microsoft internet explorer itself. But I observe one thing. i.e., If the PDF file is created with acrobat distiller the the PDF file opened on IE is fully obtained in Temporary Internet files, and if the PDF file is created with other than acrobat distiller(i.e., created using other PDF tools), then if the same file, then only a part of PDF(10KB-50KB) is obtained in Temporary internet files folder, and remaining is obtained by Acrxxxx.tmp in C:\Documents and Settings\Current UserName\Local Settings\temp folder. why this is happening?
    consider the total size of file as 1.5MB.
    In my PC, I had Adobe reader 8.1 and IE6.

    Yes, I was seeing the difference between PDFs that are linearized. I had unchecked that option, still I can't get the Full PDF in temporary Internet files folder.
    Are there any more settings to be changed.
    Why only for some files this is happening, What was the difference b/w the files which are fully obtained in temporary internet files folder and that are of not fully obtained.

  • How do I get my PDF files onto my ipad

    I spoke to apple in February and they helped me put ove a hundred PDF files onto my ipad.  When I open acrobat under the heading of documents is where all the files reside. I even made subfolders. Well, I forgot how to do it and called apple again today and they told me with the new ibook update, all pdf files get placed under ibooks. not only that, I cannot make subfolders.  Their only suggestion was to get an account with acrobat and transfer them that way.  I uploaded the files here, but now I cannot figure out how to get them onto my ipad.  Any help would be appreciated.
    Jim

    You can either select GoodReader at the bottom of the iPad's apps tab when connected to you computer's iTunes - it should appear as one apps that support file sharing (there is info on file sharing in the manual which can be downloaded from here http://support.apple.com/manuals/#ipad). Or the app itself supports wifi transfer via you wifi network - just touch the wifi symbol (next to the camera) at the bottom of the app on your iPad, and you should be given an address to use on your computer's browser so as to transfer files to/from the app.

  • Assigning server file to Blob variable in pl/sql procedure

    I have a file on the Unix box say 'test.txt' at '/temp/..'(path) which might be of a any size(which is not known), Now I wanted to read & open that file into a Blob variable in my pl/sql procedure. How can I do that ?
    Can any one please help me....
    Thanks
    Ravi

    This is not an appropriete forum to ask this pl/sql question.
    Check "DBMS_LOB Demos / Blob Load Demo" part of the below reference for an example -
    http://psoug.org/reference/dbms_lob.html

  • How could I get the pdf-file output to contain more than one page from certain homepages

    2011-08-22
    I have been using Firefox for many years now. I like this browser better than Safari. However. I have a problem when I have connected to a homepage over the web and want to write the content out to a pfd-file. The pdf-file does sometimes contain only one page. The material is good enough for two or more pages of output. I have checked that using Safari browser. I´d like to continue using Firefox so please tell med what to do!
    Göran Stille
    [email protected]
    Computer Mac Powerbook G4
    Processor 1.67 GHz PowerPC G4
    Operative system OSX 10.5.8
    Firefox version 3.6.2

    excellent.
    quiteimposing does exactly what i wanted.
    thanks a lot.
    now only problem is that demo version prints large x mark on pages
    is there any free plugins available or any other way to get rid of x mark.
    thanks in advance.

  • 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

Maybe you are looking for