Reading the document from BLOB field in Forms10g

I have stored a document (.DOC or .HTML) in BLOB fld in a table say Test1
I want to read this document when I press button on a canvas.How to do this in forms10g. I have used webutil_file_transfer.DB_To_Client_with_progress.
I can use same for downloading. But after downloading it should open the document aswell. how to go about this.

Hello,
<p>Read this.</p>
Francois

Similar Messages

  • Reading the data from BLOB column

    HI,
    I have a table with following structure
    Test_Mail(Attachment BLOB,Attachmentname varchar2(255),FileSize number)
    The data in the table is like
    Attachment|Attachmentname|FileSize
    BLOB|test.txt|1236
    I wants to read the data from the BLOB attachment in to new file.
    can any one help me in doing this with plsql??
    Thanks in advance,
    Balaji tk.
    Edited by: Balaji.tk on Jan 9, 2011 9:28 PM

    May be something like this ?
    DECLARE
       l_file       UTL_FILE.FILE_TYPE;
       l_buffer     RAW (32767);
       l_amount     BINARY_INTEGER     := 32767;
       l_pos        INTEGER            := 1;
       l_blob       BLOB;
       l_blob_len   INTEGER;
    BEGIN
    -- Open the destination file.
       l_file := UTL_FILE.FOPEN ('TEST_DIR', v_attachment_name, 'wb');
       --This v_attachment_name can be selected from your table.
    -- Get LOB locator
    FOR rec IN (
    SELECT attachment   l_blob
          FROM test_mail
         --Your where condition to find the row.      
       --AND ROWNUM =1
    LOOP
       l_blob_len := DBMS_LOB.getlength (rec.l_blob);
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
       WHILE l_pos < l_blob_len
       LOOP
          DBMS_LOB.READ (rec.l_blob, l_amount, l_pos, l_buffer);
          UTL_FILE.put_raw (l_file, l_buffer, FALSE);
          l_pos := l_pos + l_amount;
       END LOOP;
      commit;
    END LOOP;
    -- Close the file.
       UTL_FILE.FCLOSE (l_file);
    EXCEPTION
       WHEN OTHERS
       THEN
    -- Close the file if something goes wrong.
          IF UTL_FILE.IS_OPEN (l_file)
          THEN
             UTL_FILE.FCLOSE (l_file);
          END IF;
          RAISE;
    END;

  • Reading the documents from cFolders(SRM) to PO(ECC)

    Hello All,
    I have a requirement where the documents which are uploaded in SRM to a RFx by a Bidder.
    These documents get stored in the cFolders in SRM Box.
    When the RFx are converted to PO in Backend(ECC) I need to pull those documents and attach them to the PO.
    Please help.
    Thanks
    Johnson George

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • How to read and store the documents from other system to own system.

    Hi Experts,
    i need to read the document from other system (Say from other connected R/3 system) and then i need to save it in my system.
                     Please suggest how would i proceed?
    Any helpful suggestion will be rewarded with points.
    thanks
    Snehasish

    Hi Abaper
    I think I havent explained my problem well. Here I am explaining it again..
    I want to pull an  *.excel/ *.csv file through ABAP code.The target file that I want to access in my ABAP code is stored into another PC in the same Local area network under some directory say 'c:\temp\credit.csv'.
    I have the logon information of the target file's  PC.
    Please help me with code if anyone of you having.
    Thanks in advance.
    Rgds,
    Snehasish
    Edited by: Snehasish Das on Apr 29, 2008 2:18 PM
    Edited by: Snehasish Das on Apr 29, 2008 2:33 PM

  • How can i read a document from a scanner machine in java

    I am building a application and i want to read the document from the scanner
    how can i read a document from a scanner machine in java
    So pls help me on this issue

    Probably not via a network.
    http://www.javaworld.com/javaworld/jw-07-2002/jw-0726-twain.html

  • Retrieve XMLP documents directly from BLOB fields in E1; Tools Release 8.97

    Hi,
    I want to be able to retrieve XML Publisher reports (PDF, RTF, HTML) directly from the database BLOB fields in EnterpriseOne. Instead of making users manually save each report to get a soft-copy of the report, I wanted to be able to retrieve the reports from a BLOB field, create a new external file for it, and open the file with the related editor (MS Word, Adobe, IE, etc.).
    We are on Oracle 10g, and I was able to get a file populated with some BLOB data for a particular RTF file. However, when I try to open the file in MS Word, all I get is junk.
    Does anyone know if JDE stores these documents differently into BLOB fields than standard?
    Here is the code I used using PL/SQL...
    DECLARE
    xmlstr BLOB;
    warn VARCHAR2(400);
    v_file Utl_File.file_type;
    line_buf RAW(32767);
    maxbufsize BINARY_INTEGER := 32767;
    amount BINARY_INTEGER;
    offset BINARY_INTEGER;
    dir varchar2(50) := 'XMLP_DIR';
    filename varchar2(50) := 'JPARK_TEST.rtf';
    bsize NUMBER;
    BEGIN
    v_file := utl_file.fopen(dir,filename,'wb',maxbufsize);
    SELECT xorpdxpblb INTO xmlstr FROM sy812.F95631 WHERE xorpdorgud = '2115630440008e-SMNQTWZCFI-YEKRWCIOUA';
    --SELECT xdrpdubblb INTO xmlstr FROM sy812.F95630 WHERE xdrpduogud = '21080156900001-SMNQTWZCFI-ORORNYFSYJ';
    bsize := dbms_lob.getLength(xmlstr);
    dbms_output.put_line(bsize);
    amount := maxbufsize;
    offset := 1;
    WHILE (offset<bsize) LOOP
    DBMS_LOB.read(xmlstr,amount,offset,line_buf);
    utl_file.put_raw(v_file,line_buf, TRUE);
    offset := offset+amount;
    --utl_file.fflush(v_file);
    --Dbms_Output.put_line(offset);
    END LOOP;
    utl_file.fclose(v_file);
    EXCEPTION
    WHEN OTHERS THEN
    UTL_FILE.FCLOSE_ALL;
    DBMS_OUTPUT.PUT_LINE('WHEN OTHERS');
    dbms_output.put_line(substr(sqlerrm,1,254));
    END;

    the database and blob fields are identical. In the 11i (eBusiness suite) we would store this information in fnd_lobs.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • How  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL)

    Hi Experts,
    Can you please tell me to how  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL) when saving of the shipment document.

    shipment cost calculation only on the Leg level and not on header level. Currently a lot of confusion happened after creating the shipment cost document and found that the status is u201CBu201D.
    now we intend to define detailed specifications to how to create this new user exit to update the shipment cost relevancy at shipment header.
    The main functionality of the user exit  to be created is to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL).can u pls tell how to do this.

  • I forgot both my apple ID password and my mail password and i can`t acces my iCloud. I have all the documents from my iPhone. What i can do to recover my password or delete my iCloud Apple ID

    I forgot both my apple ID password and my mail password and i can`t acces my iCloud. I have all the documents from my iPhone. What i can do to recover my password or delete my iCloud Apple ID

    http://www.apple.com/support/appleid/

  • Not recognizing # while reading the file from application server

    Hi
    I am reading a file from application server. While reading into internal table with read statement the last field in each record is filling with hash symbol in the last digit. If I write any if condition with HASH symbol its not going inside the if condition, means its not recognizing as hash may be its internally treating as some other. I need to remove the hash from that field. How I can do that.
    Thanks,
    kishore

    I faced exact situation. Yes, internally its treated as some other special character. What i did was, becuase hash symbol was always coming at the end...i created a dummy field in my internal table so that it will not interfere with my actual data. When i see the data in my internal table, the hash always falls in the last field (dummy) which i will ignore. I could not get solution to remove this hash so i adopted this approach and it worked!!
    Hope it helps,
    SKJ

  • MDS-00521 - error while reading the document  in Oracle ADF at Runtime

    Hi All,
    we are using Jdeveloper Version : Oracle JDeveloper 11g 11.1.1.5.0
    we are getting below error message while opening the page at run time.
    MDS-00521 : error while reading the document app1/screen1.jsff from metadata repository.
    MDS-00569 : unable to read document app1/screen1.jsff from file "D:Oracle/Middleware11115_1/user_projects/domains/j2eeprd1/servers/app1j2eeprd1/.....
    WEB-INF/Lib/ADFViewControllerapp1.jar!/app1/screen1.jsff
    Note : we disable 1) Enable User Customizations and 2) Enable seeded customization in Project properties -> ADF View
    can you please help us to resolve this issue.!
    Thanks,

    This seems issue with MDS schema. You can try two things:
    - Restart everything again (database and admin server as well)
    - If above doesn't solve you problem. then there must problem while creating schema using RCU. Run RCU utility again, drop and recreate schema and reconfigure OIM.
    This is what I suspect. Other experts can jump in with better solution.
    regards,
    GP

  • Reading the Document files

    Hi Experts,
    In my requirement i have to read the documents attached to a materail. I got the Document Number, Type,Released version from Tables DRAD and DRAW by passing the Material Number as OBJKY. When i went to CV03N , i saw one '.doc' file and one'.pdf' file . Could you please tell me whether there is any function maodule for reading these files or another way of capturing those Files which are under that document number.
    Thanks in Advance.
    Regards,
    Rahul L

    Hi Rahul,
    if you want to download these originals to your PC than report DMS_KPRO_READ would be useful for you. With this report you can copy the original files to your PC.
    Best regards,
    Christoph

  • How can I read pdf documents from SD card

    Is it (or will it be) possible to read pdf documents from SD card in Windows Phone 8?
    Thanks

    Yes, it is possible. You can create even a folder on SD card and put in it the pdf's. It is working on my lumia 620 with Adobe reader 10.3 version.. You insert the SD in the phone, connect the phone to the computer and you will see the phone and the SD under it.
    More....
    You drag your pdf's on the SD card. when you open the Adobe reader on the phone you go to the documents and here they are (with a small card icon near the document which shows you that the file is on the SD card.

  • Reading the Excel from Content Server...

    Hello Experts
    I have a requirement to read the contents of the excel from DMS content server to Internal Table.
    I tried using the function module "SCMS_DOC_READ", but it is reading only the part of the contents and remaining contents are missing in the Internal Table.
    Is there any other way to read the content of excel file stored in content server.
    Many Thanks in advance!!!
    Regards,
    Benu

    Hi Christoph,
    Many thanks for your reply...
    Now I am using the same report for downloading the document from content server but my requirement is to read the contents directly from content server without downloading it to presentation server..
    The function module mentioned in the above post is not reading the complete contents of the excel sheet.
    Regards,
    Benu

  • Display image from BLOB field (png image)

    Hello,
    On my database i have a function which return BLOB (png image from a webservice)..
    Is there some tutorial or sample code how to display a image froma blob field in oracle reports?
    thank you

    You can create a view and base your report on that view. The view would be something like:
    create or replace view my_view as
    select my_blob_function() image
    from ...In your Report it would just be:
    select image
    from my_viewNow, I'm not sure if Reports supports png format, though.
    There are many examples to be found, e.g.
    http://download.oracle.com/docs/html/B10602_01/orbr_dyngraph.htm

  • How to read multiple documents from a system directory?

    Hi,
    I'm trying to read multiple documents from a specific folder that contains pdfs, jpgs... the only activity I found is the Read Document, but this activity does not have the option to read all docs under my folder!.
    so any one can tell me if there is another activity can do it or is there any good solution to loop on the folder and read all the docs? any script will be helpful.
    Thanks
    Hussam

    Hi,
    After many hours of searching and readings, I found a solution, I do not know if it is the best, but  anyhow this is my solution:
    By using a service operation called "Find" from a service named "FileUtilsService", this operation will return a list of strings with the names of all files and/or directories under the path you want.
    Then by using the "Read Document"  I was able to get one file and store it in a dcoumnet variable, and by using a simple looping technique I got all  the files I want.
    hope this will help others
    Hussam

Maybe you are looking for

  • Incomplete Downloads over 750M cannot be resumed

    This has been a problem since forever. I have successfully downloaded many many TV Shows and movies. However, sometimes I start downloading a TV Show, it gets interrupted. Many times this interrupted download has already downloaded 750M work of the T

  • Payables Transfer to General Ledger does not kick off Journal Import

    Hello, This is on 11.5.10.2. We have some invoice batches that are not posted in GL. This problem is sporadic and only happens for some batches and not all. It is unclear to why some batches are posted fine and others are not. The problem is at payab

  • ITunes - Vista - Music on Seperate Drive

    OK so I updated to Vista, and did a clean install. All my music was saved on a seperate drive so that wasn't an issue, or so I thought. I downloaed and installed iTunes last night, and left it sorting through my 140+GB of music. When I got up this AM

  • 60 g 5th gen music vid questions...

    HI THANKS FOR TAKING THE TIME TO READ THIS. I HAVE NON ITUNES MUSIC VIDEOS CONVERTED TO PLAY ON MY IPOD NO PROBLEM THERE...CAN I MAKE MY IPOD PLAY VIDEOS BACK TO BACK WITHOUT STOPPING AND WAITING FOR ME TO SELECT A NEW ONE? 2ND QUESTION WHY CAN I IMP

  • How to go from Safari 5 to 4

    Our daughter has an iBook with 10.5 and she hates the new Safari 5 and wants me to install Safari 4 that worked. She claims the new Safari 5 is slow and will not open web pages that Safari 4 worked all the time. Where can I download Safari 4?