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

Similar Messages

  • HT4847 how to store pdf files on iCloud ?

    how to store pdf files on iCloud ?

    Hi SirNicksolot
    After move the pdf to iCloud, how do I retrieve it from my iPad or other Mac computer after using Preview to move pdf file to iCloud?

  • Is there a way to download/view PDF files on the iPad without using another computer?

    I just recently purchased the new iPad. I have also downloaded iBooks and a PDF reader. Is there any way to view and/or download PDF files from my iPad, without using an outside computer? Please help!

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    One way is to get the GoodReader app. It has a built in web browser that allows you to web surf and download pdfs into GoodReader. You can read them in the GoodReader app or open them in other apps that can read pdfs.

  • Hi,am not able to open PDF Files in Mozilla Firefox without using plugins...I need Solution

    Hi,am not able to open PDF Files in Mozilla Firefox without using plugins...I need Solution

    Hello,
    Please see the support article below for full information on viewing PDF in Firefox:
    [[View PDF files in Firefox without downloading them]]
    If you want to use Firefox's built in PDF viewer (i.e. not a plugin) then you will need to ensure that any PDF plugins are uninstalled from Firefox and that 'Preview in Firefox' is selected as the Action for PDF files (see screenshot below).
    I hope that helps. Let me know if not.

  • 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 Upload a PDF file into BLOB column in a table using Forms 6i

    Can anyone tell me how to upload a PDF file from client and store its content in BLOB column in a table. The file will be genered using reports and win be stored in db.The file to be uploaded will be in client side.
    Thank´s.

    If you are using version 9 or 10 use webutil.... Look in webutil.pll.
    Use either one these two fuctions...
    FUNCTION Client_To_DB( clientFile       in VARCHAR2,
                             tableName        in VARCHAR2,
                             columnName       in VARCHAR2,
                             whereClause      in VARCHAR2,
                             asynchronous     in BOOLEAN default FALSE,
                             callbackTrigger  in VARCHAR2 default NULL) return BOOLEAN;
      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;

  • 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

  • How to store PDF files in a table

    Hi,
    Is there a way to store PDF files in a table? Do I use LOB? How do I automatically read them if I want them to be available in a web site?
    Thanks.
    Camille

    U have to use either BLOBs (internal LOBs) or BFILEs (external LOBs). check out docu. at http://www.akadia.com/services/ora_blob.html

  • HT5663 How to store PDF files in iCloud?

    Is there a way to store PDF files in iCloud? I see that Preview supposedly stores PDF's in iCloud, but when I try it, I cannot find the file in iCloud.

    Sorry AMCarter3, my bad.  While it used to be in GoodReader they apparently removed it some time ago, supposedly for some legal reasons?
    I too use GoodReader primarily with dropbox and box so had not noticed it was gone.
    As an aside, for those apps that support iCloud storage, if you have a Mac, enable Documents & Data in the iCloud control panel.  That will make a folder on your hard drive, named "Mobile Documents" that is your local mirror of your iCloud folders.  Apps that sync their content to iCloud will make a folder for themselves when they first conntect to iCloud, and that folder will in turn get created as a sub-folder in Mobile Documents on your Mac (I still have my one for Goodreader, "JFJWWP64QD~com~goodiware~GoodReader", along with ones for Pages, Numbers, and a host of others). 
    You can then drag and drop any file you wish into that folder (as long as it is a file type supported by the app), and they will then sync to iCloud.  You then use the app and download them for use on your iOS device from within the app.  That folder on your Mac will be updated whenever it changes and your Mac has internet access to iCloud.
    But, for PDFs in Goodreader, yes, dropbox works great, and has their free companion app for OS X if you want things on your computer to sync automatically too.

  • How to store txt file into Oracle 7 Database using Pro*C

    Hi,
    I want to store a txt file into Oracle 7 database table using
    Pro*C application. But do not know what type of column to use.
    At first glance it appeared to me as LONG can serve the purpose
    but later I noticed that I can not do the sequential read/write
    in LONG type of column. That is, I have to use chunks of max of
    2GB (or file lenght) to read/write into such columns.
    I want something simiar to CLOB of Oracle 8.
    I would appreciate if you can provide me solution.
    Thanks,
    Anurag

    You store images in a BLOB column in the database.
    However, inserting image in that column and displaying data/image from that column are 2 very different tasks.
    If you are using Oracle forms, displaying is easy. Default block sitting on the table with BLOB column, can be easily mapped to image box (or similar control), which will display that image.
    Inserting images will be a different ball game. If your forms are web based (i.e. run from browser) and you want to insert images from client machine, some special arrangements are required.
    If images are on database server and you want to insert them in database, the stored procedure given in the earlier thread (posted above) will do the job.

  • How to Store PDF files In the Oracle Database?

    Hi All,
    It is required for me to store the PDF files in the Database and retrieve it back whenever necessary.
    Also I need to store it with some security. So no one can read the content of the file.
    Please give me solution to these problems.
    Thanks

    vasav wrote:
    Hi All,
    It is required for me to store the PDF files in the Database and retrieve it back whenever necessary.Why not save the files to disk and store a link to the file in the database instead?
    Also I need to store it with some security. So no one can read the content of the file.Authenticate users requesting files.
    Please give me solution to these problems.There are many possible solutions for your requirements.

  • How to store pdf files in application layer

    Hi friends,
    Can any body tell me how to this.when ever we give a print a spool number will be created.we can give this spool number to rstxpdft4 program and we can convert it into pdf.
    how to put this pdf into application layer as a unix file.is it possible to do that.
    Regards,
    Sasi

    Complete code right from spool request :
    FORM convert_spool_to_pdf.
      IF is_otf IS INITIAL .
    List to PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
             EXPORTING
                  src_spoolid              = p_spool
               dst_device               = 'LOCL'
             IMPORTING
                  pdf_bytecount            = bytes
                  pdf_spoolid              = pdf_spool
                  list_pagecount           = pages
                  btc_jobname              = job_pdf
                  btc_jobcount             = jobcount_pdf
             TABLES
                  pdf                      = i_pdf
             EXCEPTIONS
                  err_no_abap_spooljob     = 1
                  err_no_spooljob          = 2
                  err_no_permission        = 3
                  err_conv_not_possible    = 4
                  err_bad_destdevice       = 5
                  user_cancelled           = 6
                  err_spoolerror           = 7
                  err_temseerror           = 8
                  err_btcjob_open_failed   = 9
                  err_btcjob_submit_failed = 10
                  err_btcjob_close_failed  = 11.
      ELSE .
    OTF ( SAPSCRIPT ) To PDF
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
             EXPORTING
                  src_spoolid              = p_spool
                  no_dialog                = ' '
             IMPORTING
                  pdf_bytecount            = bytes
                  pdf_spoolid              = pdf_spool
                  otf_pagecount            = pages
                  btc_jobname              = job_pdf
                  btc_jobcount             = jobcount_pdf
             TABLES
                  pdf                      = i_pdf
             EXCEPTIONS
                  err_no_otf_spooljob      = 1
                  err_no_spooljob          = 2
                  err_no_permission        = 3
                  err_conv_not_possible    = 4
                  err_bad_dstdevice        = 5
                  user_cancelled           = 6
                  err_spoolerror           = 7
                  err_temseerror           = 8
                  err_btcjob_open_failed   = 9
                  err_btcjob_submit_failed = 10
                  err_btcjob_close_failed  = 11.
      ENDIF .
      IF sy-subrc <> 0 OR
         i_pdf[] IS INITIAL .
    Error creating PDF File .
        Message e000.
      ELSE .
    Got PDF Structure . Now transfer to App. Server.
      ENDIF .
    ENDFORM.                    " convert_spool_to_pdf
    FORM send_spool_app.
      OPEN DATASET p_fname FOR OUTPUT IN BINARY MODE .
      IF sy-subrc = 0.
        LOOP AT i_pdf .
          TRANSFER i_pdf TO p_fname.
        ENDLOOP.
        CLOSE DATASET p_fname .
        MESSAGE s000 WITH p_fname.
      ELSE.
        MESSAGE e502(0u) WITH p_fname .
      ENDIF.
    endform.
    This is a working code as we are using the same concept.
    Hope it helped.

  • How to store pdf file to presentation or application server, as i mentioned

    hi,
    I have used SO_NEW_DOCUMENT_ATT_SEND_API1 function module to send employ details through mail generating individual pdf files for each.but i need a copy of all files on to my computer also which has send through mail, what should i do?, can any one sugest me a function module or a sample code to achive this. Its urgent ,hope any one could help me in this

    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

  • How to get pdf file from sap presentation server using java connector

    Hi Friends,
    with the below code i am able to get po details in pdf in presentation server.
    DATA : w_url TYPE string
           VALUE 'C:\Documents and Settings\1011\Solutions\web\files\podet.pdf'.
    CALL FUNCTION 'ECP_PDF_DISPLAY'
            EXPORTING
              purchase_order       = i_ponum
           IMPORTING
      PDF_BYTECOUNT        =
             pdf                  = file  " data in Xsting format
    *Converting Xstring to binary_tab
          CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
            EXPORTING
              buffer                = file
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
            TABLES
              binary_tab            = it_bin " data in binary format
    **Downloading into PDF file
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
      BIN_FILESIZE                    =
              filename                        = w_url
              filetype                        = 'BIN'
             TABLES
              data_tab                        = it_bin
    when i am using java connector , to retirve the file from presentation server , the follwoing error i am getting...
    init:
    deps-jar:
    compile-single:
    run-single:
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in Control Framework
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
            at PdfGen.<init>(PdfGen.java:35)
            at PdfGen.main(PdfGen.java:78)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)
    i debugged too, problem with <b>gui_download......</b>
    I am very glad to all with your suggestions!!
    Regards,
    Madhu..!!

    Hi
    You can try to create an external command (transaction SM69).......sorry I've forgotten,,,,they works on application
    How do you call CL_GUI_FRONTEND_SERVICES=>EXECUTE?
    Max
    Edited by: max bianchi on Oct 13, 2011 10:27 AM

  • How to create .pdf file on a button click using forms

    Hi
    I want to create a .pdf file. Could you please tell me how can I do that?
    regards

    Hi!
    Do you use reports?
    Just set
    desformat to PDF
    destype to cache and
    desname to the email recipient/s (max 80 characters) eg: [email protected],[email protected] ...
    Do you use forms client/server or forms on the web?
    Regards

Maybe you are looking for

  • Using Predicate filters in a Custom component

    Hello, I have a cusom datagrid component, which gets it's data from a XMLListCollection object. The xmlList is a simple <employess><employe1><fname/><lname/></emloye1></employees> I have a text input as a part of this custom component. I am creating

  • Spry menu not working on mobile browser

    How are you with Mobiles, Originally, like a month ago, the main page  worked on my Iphone, but the menu has since disapeared. Is there an  issue with the spry or CSS.? Can anyone help with this please.   http://www.tompriceshs.wa.edu.au/publish/

  • Abrupt Failing Battery and Kernel Panic?

    About 3 days ago I experienced the first problem. My battery hit 0% and instead of my powerbook sleeping it just died. On Reboot I got a "Mac OS X Unexpectedly Quit" dialog.. (unresolved kernel trap?), so I decided to reboot and reset the APU and PRA

  • Zeroes after Decimal

    Hi, I am having a value as  '6009.12300 ML'  belongs to type C. Now i don't want the zeroes after decimal such as 6009.123 ML . how cud i do this? i tried search ,split,shift,trailing zeroes but could nt get it? Thanks, Ponraj.s.

  • Advantages of storing data in XML

    Hi -- I am working with Oracle Database for long time but i haven't used XML much during this time. I am just trying to figureout the advantages of storing the data in XML (XMLType column). If i have millions of records in multiple tables, is there a