Help: Extract OLE object from 8i (long raw) to a server file folder

Posting here because most of the technical discussion I have found are in this group (Forms).
I have an 8i db with workpapers(.doc,.xls,etc) stored in a Long Raw column wrapped in OLE that were collected using forms. The DB is maintained on a Sun Solaris platform.
I need to extract the documents and write each one to a server folder as a .doc or ,xls without any OLE details.
Is this possible? How?

As far as I know you have to use OLE Item to work with the information. Unfortunately there is not any standart way to extract a source document from OLE. Some applications such as Word, Excel support OLE Automation, so you could use OLE2 package to save the document as a file, that is the easest way. But others don't, so you may have to use an undocumented way to extract a document.
Take a look at the following thread:
Subj: 6i to 9i Ole to LOB translations, How do you know the App. server?
Re: 6i to 9i Ole to LOB translations, How do you know the App. server?
P.S. If you can't extract some types of your documents, please let me khow.
P.P.S. To extract a document through OLE2 package you could use something like the following. /I'm not sure the code is correct/:
DECLARE
handle ole2.obj_type;
BEGIN
ACTIVATE_SERVER('OLE1');
handle := forms_ole.get_interface_pointer('OLE1');
BEGIN
-- Save a document to disk
Args :=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(Args, 'C:\test.doc'); -- file name
OLE2.INVOKE(handle, 'SaveAs', Args);
OLE2.DESTROY_ARGLIST(Args);
EXCEPTION WHEN OTHERS THEN
Message('Error');
END;
-- OLE2.RELEASE_OBJ(handle);
END;

Similar Messages

  • Help! Print OLE object from report builder.

    Dear OTN Members,
    I would like to know how to print out a OLE object from
    report builder, because currently I face problem to print out
    the whole contain of the winword document file, because when I
    display the OLE on the form it will only display according the
    size I declare for it, it seems that it will not automatic
    extend the size itself. i.e. if I drag the size to one page in
    fact the maximum is one page, then when it display, it will only
    display maximum one page eventhough the document file maybe
    contain 10 page inside it. So when I print out the report it
    will only show me one page, so if you have any solution, pls
    share with me, thank you.
    null

    As far as I know you have to use OLE Item to work with the information. Unfortunately there is not any standart way to extract a source document from OLE. Some applications such as Word, Excel support OLE Automation, so you could use OLE2 package to save the document as a file, that is the easest way. But others don't, so you may have to use an undocumented way to extract a document.
    Take a look at the following thread:
    Subj: 6i to 9i Ole to LOB translations, How do you know the App. server?
    Re: 6i to 9i Ole to LOB translations, How do you know the App. server?
    P.S. If you can't extract some types of your documents, please let me khow.
    P.P.S. To extract a document through OLE2 package you could use something like the following. /I'm not sure the code is correct/:
    DECLARE
    handle ole2.obj_type;
    BEGIN
    ACTIVATE_SERVER('OLE1');
    handle := forms_ole.get_interface_pointer('OLE1');
    BEGIN
    -- Save a document to disk
    Args :=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(Args, 'C:\test.doc'); -- file name
    OLE2.INVOKE(handle, 'SaveAs', Args);
    OLE2.DESTROY_ARGLIST(Args);
    EXCEPTION WHEN OTHERS THEN
    Message('Error');
    END;
    -- OLE2.RELEASE_OBJ(handle);
    END;

  • Can we extract blob objects from sql database to a human readable format?

    Hi All,
    I have question How can we extract
    blob objects from Sql database to human readable format ?
    Blob includes Images, text and docs.
    Thanks 
    Moug
    Best Regards Moug

    One thing you can do if its sql 2012 or later is to load the blob data to FileTable created in database. Then you would be able to physically browse to directory it points and see all files in its native format.
    see this for more details
    http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How can I extract certain pages from my document and save as another file?

    How can I extract certain pages from my document and save as another file?

    You would need Adobe Acrobat to do that, not Adobe Reader.

  • How to extract an object from a complicated background?

    any good ideas how to extract a detailed object from a complicated background in Photoshop CC 2014 ?

    I hear you and I agree.  Yes, some images lend themselves better to automated masking tools than others.  I've had a few cases where the tools delivered spectacular results, and others where they wouldn't even get close.  More often they help you get closer more quickly, then you have to do some hand touchup.
    Some images where the process Russell describes worked pretty well...
    Re: Best plugin for complex masking tasks ?
    Re: Extract Filter v Refine Edge CS5
    Can you post all or part of your image?  Perhaps with more specifics the suggestions can get more specific...
    -Noel

  • How to read OLE objects from Access ??

    Hi,
    I have an field of type OLE in my Access Database table. This field has some files stored in it in the form of attachment. The file types of the OLE objects can be different (xls,txt,doc). Now, I want to query the database and find the extension of the files and save it occordingly using java.
    I'm using the following now.
    JdbcOdbcInputStream jois = (JdbcOdbcInputStream) rs     .getBinaryStream("SupportingData");
    byte[] supportingData = jois.readData();
    String data = new String(supportingData);
    I'm getting data in binary format and when I try to look into it, all I can see is the header info of the file.
    Is there anyother way to read the OLE object easily ?
    Please suggest.
    Thanks,
    Mary

    How to read appended objects from file with ObjectInputStream? The short answer is you can't.
    The long answer is you can if you put some work into it. The general outline would be to create a file with a format that will allow the storage of multiple streams within it. If you use a RandomAccessFile, you can create a header containing the length. If you use streams, you'll have to use a block protocol. The reason for this is that I don't think ObjectInputStream is guaranteed to read the same number of bytes ObjectOutputStream writes to it (e.g., it could skip ending padding or such).
    Next, you'll need to create an object that can return more InputStream objects, one per stream written to the file.
    Not trivial, but that's how you'd do it.

  • Extracting info out of a long raw

    I have a table (actually from the Peoplesoft financials system) with a field type of :-
    MIMEDATALONG LONG RAW()
    This field contains an XML document, I'm trying to extract the XML out of the field using SELECT.
    I've tried every function I know of, but each one results in a ORA-00997 Invalid use of LONG datatype.
    Any suggestions? (All my attempts are below)
    select MIMEDATALONG, utl_raw.convert(MIMEDATALONG)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;
    select MIMEDATALONG, utl_raw.substr(MIMEDATALONG,1,100)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;
    select MIMEDATALONG, utl_encode.uudecode(MIMEDATALONG)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;
    select MIMEDATALONG, utl_encode.mimeheader_decode(MIMEDATALONG)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;
    select MIMEDATALONG, utl_encode.quoted_printable_decode((MIMEDATALONG)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;
    select MIMEDATALONG, utl_encode.base64_decode(MIMEDATALONG)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;
    select MIMEDATALONG, utl_raw.CAST_TO_VARCHAR2(MIMEDATALONG)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;
    select MIMEDATALONG, dbms_lob.substr(MIMEDATALONG,1,50)
    from sysadm.psapmsgpubdata
    where pubnode = 'RMAX' and chnlname ='RI_JOBORDER_MSG_CHNL' and pubid = 862;

    Write a procedure using DBMS_SQL and UTL_FILE packages to get the output into a flat file.

  • Batch process to generate thumbnail pictures from a long raw column

    Hello,
    I need to generate thumbnail pictures from already existing pictures. The existing pictures are stored in a long raw column, the option to convert to BLOB col is not possible at the moment so I'm stuck with long raws.
    Is there an easy way to generate those new pictures? do I have to build a form to download the picture, resize it and then upload it to the db in a loop for 16,000 pictures?
    Any ideas would be appreciated.
    Thanks,

    Sarvan,
    You can have MRP propose two lots of SFG2 based upon lot sizing.  For instance, if you always will want SFG2 to have orders of 50 each, then one way to achieve this would be to set the 'maximum lot size' to 50.  MRP1 Tab of the material master.
    There are other lotsizing methodologies that may be better suited to your business requirements as well.
    Lot-Size Calculation - Consumption-Based Planning (MM-CBP) - SAP Library
    Best Regards,
    DB49

  • Encrypted Profile Migration from XP to Windows 7 (Windows & Program Files Folder not Available)

    I'm trying to migrate a few encrypted profiles from Windows XP to Windows 7 
    I have a disk without "Windows" and "Program Files" Folder with the userprofiles without a backup of recovery agent and related certificates. 
    By USMT or in another way it is possible a deployment and recovery (also partial) of these userprofiles folders? These data can be accessible in some way or there are lost forevar? 
    During USMT deployment by scanstate/loadstate cmdline tools: I used to be specify a KeyString
    after the switch command "/encrypt /efs:". I can blank "/efs:" argument during USMT Deployment? 
    Thank you.

    Sadly, without a backup of encrypted userprofiles, related data are unusable after scanstate phase.
    Anyway, what
     Hetti
    Arachchige V Aravinda had written is very important to know when you copy or move ecrypted folder and files in a different partition or in a another disk.
    Thanks Hetti
    Arachchige V Aravinda for your good info and tips. 

  • Extracted Info objects from SAP R/3 not appearing in SAP BW side

    Hi,
    I am trying to extract three fileds through generic extraction using function module,
    I have checked the fields(values)in RSA3 ,which shows the correct values but the values are not showing in ODS when extracted from SAP R/3 ,
    Any one can advice where to check and how to check?
    Any help in this regard is higly appreciated.
    Cheers,

    Hi Pavan,
      Please check the function module,
    Common Mistakes during FM development and their consequences:
       1. The counter C_DATAPAKID is not incremented correctly.
    Consequences:
    The RSA3 transaction will execute correctly, but when the program is executed using BW system the records are never transferred. The Extractor enters into a never ending loop and finally gets timed out.
    http://wiki.sdn.sap.com/wiki/display/BI/CustomFunctionModulestoextractthedatafromSAPSYSTEMto+BW
    While checking data in PSA, if there are more fields in datasource use change display variants (CtrlshiftF6). If the required fields are in right hand side of the column set,include them in displayed column.

  • How do I extract each page from a long document and email to separate adresses?

    So here's my current situation. I have about a 200 page long PDF document. Each page has an individual customer number on it. Currently, I print out the 200 pg doc and email each one separately to the corresponding customer in numerical order.
    First of all, is there a way that I can extract the 200 pg document into 200 individual documents with one page each? Second, is there an efficient way to mass email the 200 customers with their corresponding document only, without seeing the other 199 documents?

    Splitting document - Acrobat Pro.
    An experienced programmer could write JavaScript to pick up the customer numbers and do something with it, but it's not for the faint hearted.

  • Help extracting URL's from PDFs I create

    Using Acrobat pro 9.+ I have several PDF catalogs I have created, and what I need t
    o do is extract the URL's for each 100 page catalog.
    These are added URL's using the Acrobat linking tool
    Ideally they would be one URL per row, and have at least a minimum amout of information.
    1. URL
    2. (if possible, the page the URL is from)
    Thank you

    maybea two step process? one applescript that extracts to a text file, and then an automator that can read that file (can autoamtor read froma  text file?) and do what you want?
    Jason

  • Urgent, please help! OLE API from Oracle 7 to Oracle 8

    Hi,
    Our company has a client application developed basing on VC++, Oracle OLE to communication with Oracle database.(WinNT)
    Now, we upgrade the client side from Oracle 7 to Oracle 8, then using new version OLE API. My question is:
    1. if or not, we have to modify VC source code, using new OLE library(there do has difference between OLE for Oracle 7 & Oracle 8).
    2. Using OLE, can Oracle 8 client communicate with Orcle 7 server?
    Many thanks and regards.
    Zhan([email protected])

    Hi Zan
    Oracle8i Client CAN access Oracle7.x.x db, however be sure to unistall the
    previuos version of Oracle OLE.
    Good Luck

  • Sed help / extracting useful bits from a line with sed

    I need to parse some log files extracting only the numerical parts of interest.  Example line:
    x264 [info]: SSIM Mean Y:0.9689320 (15.077db)
    Two goals here:
    1) Capture the number after the "Y:" --> 0.9689320
    2) Capture the number in () without the db --> 15.077
    I thought I'd attack it using sed to find anything up to Y: and delete it, then anything after a space and delete it, but find myself unable to do it.  Suggestions are welcomed.  I can do it with awk/sed combo but want to learn a better way.
    awk '{print $5}' | sed 's/Y://'
    Last edited by graysky (2011-04-10 17:35:21)

    @graysky - As others have said use sed backreferences. Here is an another example.
    sed 's/^.*:\([[:alnum:]]*\.[[:alnum:]]*\) [^\(]*(\(.*\)db)[^\)]*$/\1 \2/'
    Note: disraptor's regex is much easier to read. I'd use it! I just whipped this up before I saw his
    In:
    echo "x264 [info]: SSIM Mean Y:0.9689320 (15.077db)" | sed 's/^.*:\([[:alnum:]]*\.[[:alnum:]]*\) [^\(]*(\(.*\)db)[^\)]*$/\1 \2/'
    Out:
    0.9689320 15.077
    In awk: (One way of doing it!)
    mawk '{gsub(/[Y\:\(\)db]/,""); print $5,$6}'
    In:
    echo "x264 [info]: SSIM Mean Y:0.9689320 (15.077db)" | mawk '{gsub(/[Y\:\(\)db]/,""); print $5,$6}'
    Out:
    0.9689320 15.077
    This was quick but I hope it gets you on the right path
    Edit:
    How about just grep?
    echo $(grep -o '[0-9]\.[0-9]*')
    In:
    echo "x264 [info]: SSIM Mean Y:0.9689320 (15.077db)" | echo $(grep -o '[0-9]\.[0-9]*')
    Out:
    0.9689320 5.077
    Cheap, but I'd thought I would add it anyway!
    P.S. Here is the full way to extract both numbers using awk's substr function as disraptor mentioned before.
    mawk '{print substr($5,3),substr($6,2,6)}'
    Last edited by harryNID (2011-04-11 20:08:31)

  • Extracting an object from a background to discard

    Hi , I have an image and in the background there is a person who is blocking something which I want to be visible
    Which tool would be the best to use.
    I dont think the magic extractor will do the job as that will highlight the person I'm trying to get rid of ?
    Thanks for your help
    Dennett1953

    You really need a second photo which has the item being blocked, otherwise it's impossible.

Maybe you are looking for

  • Allow negative stocks only if i have open purchase order

    Good Morning Gurus How to to the customization for the scenario like open purchase must for allowing negative stocks in my plant. with out open po negative stocks should not allow. can we config for this ???????????? Thanks & Regards, Naresh

  • Can't edit or add entries to Contacts

    I am unable to edit any entries in Contacts and cannot add any new contacts in Mavericks. As soon as I click "Done" after an edit, the contact reverts to its original contents, i.e. the edit disappears. If I add a new contact, it also disappears when

  • Content Search and 'Items Matching a Tag' Web Part Not Displaying Results Shown in Preview

    Hi I've been trying to set up both the Content Search and Items Matching a Tag Web Parts with the same issue.  In both cases I can create a query which displays the expected results in the Search Result Preview pane but no results are returned when b

  • Menu items and panels gone

    Hi, We are having a problem with one of our installations of InDesign CS4 (6.0.6) on PC, Windows XP, on a user account with Administrator's rights. It is an issue described many times on the forums: All of a sudden, some pallets stopped showing corre

  • Variable overloading problem - please help

    Hi I have a simple program that needs to read in a decimal OR octal OR hexadecimal number, calculate the result into a decimal value and spit it out to the user. However I am little concerned as to what type can I use so the user doesn't over load my