LONG_RAW conversion (using OLE) to file system then import into BLOB column

To whom it may concern (I will call "hero" or "savior" if you can solve this for me),
I posted this message an another thread; but then later thought it would be better in its own thread.
I was wondering how to extract the Adobe Acrobat Reader files (PDF) from OLE component stored in a LONG_RAW database column. I was able to successfully extract the MS-Word, MS-Excel, MS-Powerpoint, and MS-Project to the operating system. I was not able to extract the Adobe PDF files. The PDF files do not return an error message nor do they write out to the file system?
Leonid previous posted some suggestions on how to convert the data. Can anyone expand on tasks #4 and #5 (see below)?
You can use this library to do the following task:
1. Get the type of an object stored inside OLE Item. Get information about the OLE server.
GetCLSID, GetProgID, IsIDispatchSupported
2. Get information about the object
IsLinked, GetSourceDisplayName
3. Get information from the object in formats supported by its IDataObject interface.
EnumFormatEtc, RegClipFormat, GetData
I suppose it's the best way to extract pictures!
4. Save the object into an external file throu IPersistFile interface. It works only if IPersistFile::Save method is implemented by the OLE server. Unfortunately, some OLE servers don't support this method even don't return a correct error code.
SaveToFile
Works with: MS Word, MS Excel
Not works with: Adobe Acrobat (I'm not sure. Maybe I've done something wrong), MS Photo Editor
5. Extract the 'Contents' stream from a structured storage /a compound document/.
ExtractToFile
It isn't a documented way, but it can be used to extract PDF files.
I have tried the following two scenarios for the PDF extraction:
-- First Attempt
ret:=OLEXTRA.SaveToFile( application, v_FILENAME_WO_EXT || '.pdf' );
if ret <> 0 then
show_message( 'SaveToFile Error code='||ret );
end if;
-- application does not return an error message
-- application does not save the PDF file to the operating system.
-- Second Attempt
ret:=OLEXTRA.ExtractToFile( application, 'stg.pdf', 'fname.pdf' );
if ret <> 0 then
show_message( 'ExtractToFile Error code='||ret );
end if;
-- application does not return an error message.
-- application does not save fname.pdf to the operating system
-- application saves the stg.pdf to file system, but cannot open in Adobe
Thanks in advance for the help,
Mike

There is no way from PL/SQL in Forms - you'll have to call out to C or Java Code to do it.
You can link in Pro*C or OCI code into forms as a user exit in which case it can share the forms connection but that's not for the faint hearted.
Using Java - called from the Java Importer feature in 6i+ you'll end up creating a separate connection.
Frankly if you can do it in a generic enough way through a VB executable stick with that.
Forms can get images in an out of a long raw using read_image_file and write_image_file but that does not extend to any binary file - just images.

Similar Messages

  • Know use% of a file system

    Can anyone of you please tell me the way of filtering the information obtained when a 'df -k' command is given. I am actually trying to get only the 'use%' of a file system.

    Why not lear the format of a df command first?
    You can do so by reading a manual page on it.
    Call the manual page with this command: man df.
    My favourite for percentages is this:
    df -h
    Reports usage in human readable form.
    You filter output by grep command, like this:
    df -h | grep TheDiskIwantToSee_Or_AnyOtherString
    Now give me two "Duke Dollars" (see on the left of your screen).
    I am tired of answering easy questions, which easily can be found in documentation, or have been already previously asked.

  • Linux Mint 17, migrated from Win7: Verify that you have enough disk space, and that you have write privileges to the file system, then try again.

    I get this error message (The messages could not be filtered to folder 'Generic Folder' because writing to folder failed. Verify that you have enough disk space, and that you have write privileges to the file system, then try again.) popping up on many, though not all of my incoming filters. I recently migrated from a Windows 7 installation to a Linux Mint 17 system.

    I did give it time to run through everything when I initially migrated, and it frequently will sit open for 3 to 4 hours while I'm working on other projects.
    The 'Generic Folder' represents sorting folders in my main mail account in Thunderbird. For example, my mail which is listed to filter into my 'Amazon' folder is sorted there with no problem, while any mail designated to be filtered into my 'Games' folder prompts the above error massage.

  • PSD files created using export data set fail to import into lightroom

    If I create a set of files using variables in a data set, the PSD files won't import into LightRoom. LR says to resave with maximum compatibility, but I already have that set in Photoshop. If I open one of the files and resave it, it will import. Perhaps PS isn't honoring the maximize compatibility setting when exporting.

    Hi,
    I downloaded 10g database ver 10.2.0.1.0 from oracle site and installed it on my laptop. I took an export of schema which was on my 9i database ver 9.2.0.1.0 using 9i exp, created tablespace and user in the 10gdb and tried to import the same to 10gdb using 10g imp using the following.
    imp system/pswd@10gdb fromuser=test touser=test file=expdat.dmp log=expdat.log
    it displays
    .importing SYSTEM'S objects into SYSTEM
    .importing TEST'S objects into TEST
    and it doesnt import any objects just hangs. The Log file does'nt have any entries.
    Can anyone help me.
    Thanks in advance
    Smdas

  • Can i export an Imovie project with special effects as a quick time movie then import into final cut express keeping the special effects?

    Hi, Can i export an Imovie project with special effects as a quick time movie then import into final cut express keeping the special effects?

    Absolutely.  Go to File->Export->QuickTime Movie (do NOT use QuickTime Conversion).  Make sure you check the Self-Contained box.  The export will be an exact copy of your Sequence, complete with any filters or other effects you've added.  Import the self-contained movie back into the project (or another project) if needed.
    -DH

  • How can I edit budgeted cost/unit in excel and then import into P6?

    I would like to edit resource assignements (budgeted cost/unit) month by month in an excel file, and then import it into P6. Is this possible?
    It seems that the resource assignments month by month cannot be exported to an excel file. Is there anyone who can help me find a solution to this problem?
    Thanks a lot.
    By the way, I foud I can use the reporting function to get the excel file with month by month resource assignment information and can edit the values, but I cannot then import the changes into P6.

    not sure if this helps at all, but..
    when you refer to importing units (or costs) by period, do you mean past financial period actual data or future bucket planning data ?
    if it's the former, you can select corresponding financial period fields (period actual units and/or cost) for export to excell. unfortunately not sure why they are marked (*) which means they cannot be modified and reimported just as easily.
    an update of the same fields in the P6 database can be performed through P6 Timesheets (or similar solutions) through SDK (and possibly API or Webservices).
    if it's the latter, i don't see how *"future bucket planning" or any other non-linear distribution* (which can be a bit too much and quite time consuming in p6), can be made easier in excell.
    i think predefined non-linear resource curves are a good compromise, but if that doesn't suit your needs, you can define *"custom resource curves"* of your own for resource assignments using the resource usage spreadsheet.
    you would need to enter values for budgeted units for several future intervals (depending on the timescale)
    e.g. for months 1 to 4, you manually set budgeted units to 1, 0, 2 and 4h respectively, resulting in a total of budgeted units for the assignment of 7h.
    if you then modify the 7h to 70h, the sistem will adjust the period values proportionally to the initial values, resulting 10, 0, 20 and 40 h respectively.
    best of luck

  • How to load externl files (PDF) into BLOB column.  Please 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

    Hi,
    If the following link helps to you then great.
    http://www.exefind.com/oralobeditor-P25468.html
    Regards,
    Sailaja

  • My Images won't open in Photoshop CS5 when I click on Edit in Lightroom - even though this option has been selected?  To edit in Photoshop I have to export image from Lightroom then import into Photoshop.  I have other programmes such as NIK and if I wish

    My Images won't open in Photoshop CS5 when I click on Edit in Lightroom - even though this option has been selected?  To edit in Photoshop I have to export image from Lightroom then import into Photoshop.  I have other programmes such as NIK and if I wish to edit in these everything works fine.

    Same here. I've never had trouble with this function before.
    It opens the Photoshop application with all the menus/windows, but it never opens the actual image I chose to work on.
    I'm on a Mac, using OS X Yosemite, 10.10.1  Lightroom is version 5.7  Photoshop is CS5, version 12.0.4
    FWIW, I also can't automate>Photomerge ... . Makes me think Photoshop, not Lightroom, is all wacky. I tried dumping PS preferences

  • What is THE best video file format to import into Premiere Pro CS6?

    What is THE best video file format to import into Premiere Pro CS6? I am tired of the guess work of "this might work if you do this." Just tell me which is, flat out, the easiest for Premiere to read?? I generally animate in Adobe Flash, and some times with a Live camera. Premiere seems to pick and choose which video file it wants. I import from the File drop down box in the upper left hand corner, then move the video file to timeline. Under the "scrubber" there is a thin red, (or when rendered) a green line. The videos I put in the timeline show a thin yellow line which means Premiere is confused. So, in basic terms, which video format is MOST commonly accepted with the least amount of trouble/hassle?

    Premiere has a function now where you can import a clip and drag onto a timeline and it will prompt you with a message about changing the timeline settings to match your clip, (or if there is no timeline it will automatically create one that matches your clip.) This is in CC of course so you might consider upgrading. They have fixed a lot of compatibility issues from CS6 to now. If you don't want to get all of CC for 60/month then you can at least shell out 20/month on premiere. It's worth it. They've made it where you don't have to worry about 99% of all video formats. They just work.

  • How to insert  data into BLOB column  using sql

    Hi all,
    How to insert data into BLOB column directly using sql .
    create  table temp
      a blob,
      b clob);
    SQL> /
    Insert into temp  values ('32aasdasdsdasdasd4e32','adsfbsdkjf') ;
    ERROR at line 1:
    ORA-01465: invalid hex number
    Please help in this.Thanks,
    P Prakash

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

  • Maximum file size for importing into Premiere Pro CS6

    Hi,
    I'm considering recording raw video, no compression at 720p, 30 fps for 20-30 min.  This woudl result in a file that is close to 80 Gbytes.  I'm wondering what the maximum file size for importing into premiere Pro is and if I need to split this file up into smaller pieces.  Any recommendations on how I may deal with uncompressed raw video that is pretty long in length?
    Thanks,
    Serena

    There is bound to be some limit somewhere in the program, but you should be well below that. The biggest issue might be whether your computer is up to the task of handling it. If you will post your computer specs., someone will give you comments on that aspect.
    Good luck,
    Hunt

  • File name not importing into iPhoto

    I keep my photos on an external disk and import them from that disk into iPhoto. When I import, sometimes the file name is imported into the caption field and sometimes it does not.
    Any ideas why? I have search for others posts but can't find any. I did check the permissions of the files representing both results and the permissions are the same.

    What is displayed in the title field under the thumbnails?
    Have you tried selecting the offending photos, going to the Photos->Batch Change menu and selecting Title to File Name option?
    Click to view full size

  • How do I use a NAS file system attached to my router to store iTunes purchases?

    We have four Windows devices networked in our house.  They all run iTunes with the same Apple ID so when any one of them has iTunes running, we can see that computer on our Apple TV.  Two run Windows XP, one runs Vista Business, and the newest runs Windows 7.  Upgrading all to the same Windows software is out of the question.  Our NAS is hung on an "off warranty" Linksys E3000 router which communicates via USB with a 1TB NTFS formatted Western Digital hard drive.  Our plan when we set up this little network, not cheaply, in our 1939 baloon construction tank of a house, was to build our library of digital images, music, and video primarily on that device.  It supports a variant of Windows streaming support, but poorly.  The best streaming support for our environment seems to be our ethernet connected Apple TV which is hung off the big TV in our family room, and has access to the surround sound "Home Theater" in that room.  We've incrementally built up collections of photos, digitized music, and most recently educational materialsd, podcasts, etc. which threaten storage limits on a couple of default C: drives on these windows systems.  iTunes, before the latest upgrades, gave us some feedback on the file system connections it established without going to the properties of the individual files, but the latest one has yet to be figured out.  MP3's and photos behave fairly well, including the recently available connection between Adobe software and iTunes which magically appeared, allowing JPEG files indexed by Adobe Photoshop Elements running on the two fastest computers to show up under control on the Apple TV attached 56' Samsung screen! 
    Problems arose when we started trying to set things up so that purchases downloaded from the iTunes store ended up directly on the NAS, and when things downloaded to a specific iTunes library on one of the Windows boxes caused storage "issues" on that box.  A bigger problem looming in the immediate future is the "housecleaning" effort which is part of my set of "new years resolutions."  How do I get control of all of my collections and merge them on the NAS without duplicate files, or when, for example, we have .ACC and .MP3 versions, only the required "best" option for the specific piece of music becomes a candidate for streaming?
    I envission this consolidation effort as a "once in a lifetime" effort.  I'm 70, my wife is 68 and not as "technical" as I am, so documented procedures will be required. 
    I plan to keep this thread updated with progress and questions as this project proceeds.  Links to "how to" experiences which are well documented, etc. may be appreciated by those who follow it.  I plan to post progress reports and detailed issues going forward.   Please help?

    Step 1 - by trial and error...
    So far, I have been able to create physical files containing MP3 and JPG on the NAS using the Windows XP systems to copy from shared locations on the Vista and Win7 boxes.  This process has been aided by the use of a 600 GB SATA 2 capable hard drive enclosure.  I first attach to Win 7 or Win Vista and reboot to see the local drive spaces formatted on the portable device.  Then I copy files from the user's private directories to the public drive space.  When the portable drive is wired to an XP box, I can use Windows to move the files from the portable device to the NAS without any of the more advanced file attributes being copied to the NAS.  Once the files are on the NAS, I can add the new folder(s) to iTunes on any of the computers and voila, the data becomes sharable via iTunes.  So far, this works for anything that I have completely purchased, or for MP3's I made from the AIC files created when I purchased alblums via iTunes. 
    I have three huge boxes full of vynl records I've accumulated.  The ones that I've successfully digitized via a turntable attached to the sound card on one of my computers and third party software, have found their way to the NAS after being imported into iTunes and using it to bring down available album art work.  In general I've been reasonably well pleased with the sound quality of digital MP3 files created this way, but the software I've been using sometimes has serious problems automatically separating individual songs from the album tracks and re-converting "one at a time" isn't very efficient.

  • Partitioning previously used Windows NT File System for use with Mac and PC

    With reference to this thread I found when searching for a solution: Can Windows NT File System(NTFS) format external hard drive work on iMac?
    Below is the comment which led to me creating this new thread.
    "rkaufmann87Sep 8, 2014 8:26 AM Re: Can Windows NT File System(NTFS) format external hard drive work on iMac?
    in response to djj19
    djj19 wrote:
    Hi there,
    I am about to follow your advice also for the same issue, the worry I have is that when I select partition 1, it says "To erase and partition the selected disk..." and so I am worried that if I do this it will erase the current contents of the hard disk drive (which were copied there from PCs in previous use).
    If so, is there a way to use the hard disk drive with a mac without erasing the contents?
    Thanks
    Your case is different and NO do not partition the EHD yet unless you are prepared to completely erase your PC data. Before progressing though, do you intend to share the EHD with a PC and your Mac? If so this is not advisable but it is possible, however you will need to compromise. Please answer that question first and then we can proceed with some advice.
    BTW it's generally not a good idea to ask a question in a thread that has already been answered, particularly one that is 3+ years old! In such a case it's normally better to create your own thread. "
    The answer to the question in the above comment is that ideally I would like to use with both Mac and PC, why is this not advisable?
    Please discuss my best options. I am wondering if I could transfer the current contents of the disk drive elsewhere, partition (which would erase) the disk drive, then put back the contents along with the new files which I have been trying to put on in the first place?
    If this were to work would I then be tied down to only using this disk drive with a Mac?
    Thank you.
    Message was edited by: djj19

    Ideally it is best to have seperate (discreet) EHD's for a PC and Mac due to their differences in HD formatting. However, this is not always feasable but there are alternative solutions availble. Among those are:
    Creating and useing a Dropbox account that can be shared by PCs, Macs, IOS and Android devices. Dropbox allows for 2GB of free storage and additional storage is available for a small monthly fee.
    Another possiblity is formating an EHD so that it may be shared by both a PC and Mac, this format is FAT 32. The downside of doing this is the size of the files written to the HD are limited to 4GB.

  • CAF service: import web services using Remote Location / File System

    Hallo Experts
    I use the NetWeaver DevStudio 7.1 SP5.
    I have a CAF project and in this project I want to import one WebService as external service. I have chosen the option "Remote location/ File System" in the import web service wizard, then I enter the URL in the following step. But at the end of wizard I got the error "WSDL could not be downloaded because Server returned HTTP response code 403 for URL". The web service I've deployed and tested on the server. It runs well. Any Hints?
    Thanks in advance
    Kind Regards
    Ping

    Hallo
    I found out: if I enter one URL "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdl&mode=ws_policy". Afterwards I got the error "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdlmode=ws_policy". & ist not correct displayed. Is this the problem that I got 403 Error... It is a bug in SP5
    Thanks if you can tell me some work-arround.
    Ping

Maybe you are looking for

  • Curve 8310 and 8300 Calendar item not sync up to Exchange-Outllook

    Have 466 Blackberrys and a couple of them two executives one 8310 and one 8300 when calendar items are put on the device they will not sync up to Outlook.  We have BES 4.1.4.16 and the two Curves are unnint 4.4.4 software.  Mail works fine, Contacts

  • How to get details on swapped out processes?

    I am trying to get the details on some swapped out processes. Currently vmstat is showing 71 processes a swapped out: vmstat 3 3 kthr      memory            page            disk          faults      cpu r b w   swap  free  re  mf pi po fr de sr vc vc

  • Download error SD card

    I am getting an error when downloading a PDF file on my phone all of sudden.  The error says is can't download on SD card.

  • Os 10.7.3 combined update sleep problems

    Whhen I put the computer to sleep it will not wake up. Starts and stops part way thru.

  • Creating bootable iso for pc use

    Hi Everyone, I'm trying to burn Memtest86 iso image from my desktop onto a blank cd. I would like to boot from that cd onto a pc so I can run some test on a newly built pc. My question I have tried multiple methods to burn using disk utility but have