ORDDoc - Loading Word Document - Please Help

Hi
I am trying to upload the word document (doc format) to the table i have in oracle database. The table has the column of type OrdDoc.
I am using Intermedia Java API to load the word file from my local system to the database. The upload is happening successfully but when i try to retreive the document i see that its empty and even the properties (mimetype, format) of the document are null.
I would appreciate if anyone of you could please tell me what am i doing wrong and how can i upload the file correctly.
Below is more information about table structure and also the java code.
Table Structure
TableName: DocTable
ColumnName Type
DocId NUMBER
DocName VarChar2(40)
DOCUMENT ORDSYS.ORDDoc
Below are some lines from my code
String insertDocRecord_Qry = "Insert into DocTable (docId,docName,document) values (1,"FirstDoc ",ORDSYS.ORDDoc.init())";
PreparedStatement insertStmt = conn.prepareStatement(insertDocRecord_Qry);
insertStmt.execute();
String selectDocForUpdate_Qry = "select document from DocTable where docId = 1 for update";
OracleResultSet rset = (OracleResultSet)stmt.executeQuery(selectDocForUpdate_Qry);
rset.next();
OrdDoc docProxy = (OrdDoc)rset.getORAData("document", OrdDoc.getORADataFactory());
rset.close();
docProxy.loadDataFromFile("C:/Files/MyFirstDoc.doc");
String updateDoc_Qry = "update DocTable set document=? where docId=1";
opstmt = (OraclePreparedStatement)conn.prepareStatement(updateDoc_Qry);
opstmt.setORAData(1, docProxy);
opstmt.execute();
opstmt.close();
PLEASE HELP ME FIGURE OUT WHAT AM I DOING WRONG IN ABOVE CODE.
ABOVE Code doesnt throw an error when executed but when i try to retireve the properties of the document that gets loaded in to the DocTable all i see is null values and 0 content length.
Thanks for your help in advance
-L

Hi Mavris
Thanks for the reply.
In my example the reason i did not invoke setProperties() method is because the setProperties method exposed in OrdDoc class is not same as the setProperties method in OrdAudio or OrdImage.
In OrdDoc class setProperties(byte[][] ctx,boolean setComments) takes two arguments where as setProperties() in OrdAudio and OrdImage does not take any arguments.
byte[ ] ctx[ ] = new byte [4000][1];
When i tried to use setProperties(ctx,true) in OrdDoc i was getting an error.
Can you please tell if this is the correct way to invoke setProperties on OrdDoc in Java Program?
Regarding the list of format that Intermedia Understands, the Appendices A, B and C in Intermedia Refererence talks only about Audio, Image and Video. It doesnt have any details about Document (pdf, txt, doc) files. Can you please tell where can i look for the list of formats that intermedia understands for OrdDoc?
Since the dataType is OrdDoc in my table. How do i check the LOB length?
I tried it using Intermedia Java API by calling getContentLength method after retreiving the OrdDoc column from resultset but it has a value of '0'. So am not sure why the document is not getting loaded.
Please help me resolve this issue.
Thanks

Similar Messages

  • Hi, I am trying to convert my resume on pages to a word document.  When i export the file to to make it a word document ie(resume.doc) it messes up my whole resume on websites and pulls up a bunch of random words. Please help!

    Hi, I am trying to convert my resume on pages to a word document.  When i export the file to to make it a word document ie(resume.doc) it messes up my whole resume on websites and pulls up a bunch of random words. Please help!

    What exactly is the problem?
    Your description is so muddled I am having trouble working it out.
    How does your exported .doc file mess up websites? In fact what does it have to do with websites?
    Where, how and what are the random words turning up?
    Peter

  • How to view corrupted word files, please help?

    Can't view doc corrupted file .How to recover unsaved documents WORD? how to view corrupted word files, please help

    It could be Word or even Windows that is having the problem. Before you start trying to restore a backup or repair a file, try opening other documents.
    Try opening your "corrupt" document from another computer. Also you can try to make a copy of corrupted files. (It could work) : http://www.filerepairforum.com/forum/microsoft/microsoft-aa/word/968-i-would-be-grateful-for-any-help-to-repair-or-the-procedures-word-files
    But if nothing helps, you can try to recover it by using DOCX Viewer Tool Download free demo versions of this software from website: http://www.docx.viewertool.com/ It’s
    gonna help.

  • HT1199 Hai, i tried to open itunes on my windows 8 laptop but it comes out with 'iTunes has stop working' notification and need to close the program everytime i try to load it. Please help! thanks.

    Hai, i tried to open itunes on my windows 8 laptop but it comes out with 'iTunes has stop working' notification and need to close the program everytime i try to load it. Please help! thanks.

    Hi ajay-9,
    Thanks for visiting Apple Support Communities.
    The steps in this article can help if iTunes is quitting unexpectedly on your PC:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Cheers,
    Jeremy

  • I am trying to split a document please help?

    I am trying to split a document please help?

    Easy with Acrobat, but not possible with Adobe Reader.

  • Load word document file into database

    Hello,
    Kindly tell me how do i load word document file into my database.

    you can use BLOB columns to store the word document in the database
    But not sure how are you trying to load (i.e what is your application front end)
    Oracle Forms, Java etc.
    so based on that specific solution can be given.

  • Cut and paste from Safari to Word doc please Help!!!!!

    I am trying to take a map from the internet via either Mapquest or Rand Mcnally maps and put it in a Word document, and I cannot figure out how to do it. I have tried to highlight the map and cut and paste it in the document but this is not working, if anyone out there knows how to perform this function, please let me know as soon as possible.
    Thanks
    Chris Knop

    Hi knopper, Welcome to Apple's Users Help Users Forums.
    This should work. :~)
    1] cmd shift 4 brings up a cross hair.
    2] drag cross hair across the map and release.
    3] see the png file, maybe jpg, on your desktop or where you have system store new things.
    4] open to make sure its what you want.
    5] copy it into word.
    If that works, I like Green or Gold stars. See Apple info on the email alerts.
    Thanks, Joyous Computing, JP

  • HT201364 has any one had a problem downloading maverick on your system.ports 1 2 3 has been split by the person i brought the mac from and i'm having a hard time loading maverick.. please help..lol

    Good day i am having a problem with loading maverick on my mac tower 10.6.8..my computer guy set the hard drives up in different ports, so i put my operating system 10.6.8 on another hard drive to see if that would work,but i notice the main hard drive and the one i choose changed places on my desk top ,but i still cant download Maverick.. probably something small but i don't no that much about this problem...please help..lol

    What kind of Mac do you have. A PowerMac cannot run Mavericks, nor Snow Leopard (10.6.8) for that matter.

  • The App Store is not loading.. Please Help

    Since I bought my mac pro back in 2011, I have never used the app store because it never loads.
    Now I really need it because I trying to download the Yosemite. Below is what I get every time I open the app store on my macbook pro.
    Please help fix this.

    Hi ..
    Several things to try.
    Apps such as Little Snitch, Growl, MacKeeper, and anti virus software, can prevent the App Store from loading
    Disable anti virus software if installed
    Check the firewall in System Preferences > Security & Privacy > Firewall > Firewall Options
    Make sure Gatekeeper is enabled
    Open System Preferences > Security & Privacy then select the General tab.
    Make sure either Mac App Store or Mac App Store and identified developers is selected.
    If that area is grayed out, click the padlock icon to proceed.
    OS X: About Gatekeeper

  • How to Load External Images - Please Help!

    I have created a simple portfolio site. The buttons I created
    trigger separate frames. Could I not create a MC (Movie Clip) on
    each frame where the images now reside and then when the button is
    clicked (On "Click' Goto frame 1) for e.g. then the image would be
    loaded from an external folder named "Images" in my website?
    I am stumped as to how to set this up. Could someone please
    help me?
    Thanks

    Yes, you can do that. Which version of Flash and which
    version of Actionscript are you using?

  • My MacBook is stuck on the loading screen. Please help! Not sure what to do

    Hi, so my MacBook has stopped working for some reason
    I've just tried switching it on but it has stopped on the loading screen.
    I am scared and not sure what to do.
    Please help!!!

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a boot failure is to secure your data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since your last backup, you can skip this step.   
    There are several ways to back up a Mac that is unable to boot. You need an external hard drive to hold the backup data.
         a. Boot into the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
    b. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    c. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to boot, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can boot now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    If you've booted from an external storage device, make sure that your internal boot volume is selected in the Startup Disk pane of System Preferences.
    Step 3
    Boot in safe mode. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you boot in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, your boot volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 5.
    If you can boot and log in now, empty the Trash, and then open the Finder Info window on your boot volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then reboot as usual (i.e., not in safe mode.)
    If the boot process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 4
    Sometimes a boot failure can be resolved by resetting the NVRAM.
    Step 5
    Launch Disk Utility in Recovery mode (see Step 1.) Select your startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then reboot as usual.
    Step 6
    Reinstall the OS. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 7
    Repeat Step 6, but this time erase the boot volume in Disk Utility before installing. The system should automatically reboot into the Setup Assistant. Follow the prompts to transfer your data from a Time Machine or other backup.
    Step 8
    This step applies only to older Macs (not current models) that have a logic-board ("PRAM") battery. Both desktop and portable Macs used to have such a battery. The logic-board battery is separate from the main battery of a portable. A dead logic-board battery can cause a gray screen at boot. Typically the boot failure will be preceded by loss of the startup disk and system clock settings. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 9
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store to have the machine tested. If you can't get to an Apple Store, go to another authorized service provider.

  • Loading Word document into Adobe Captivate

    I would like to know how to upload MS Word document into Adobe Captivate format.

    Hi there,
    Welcome to Adobe Community.
    Could you please elaborate a little more on what exactky you are trying to do?
    You can open a word document on a button or on an object but you cannot import it. You can import a PowerPoint Slide.
    Thanks!

  • Problem in Billing Document-Please help!

    Dear Experts,
    I have CIN configured in my pricing procedure and I am doing the complete sales process Order>>Delivery>>Billing
    At the time when I am saving my billing document system is showing a pop up message
    u201CPrint excise invoice in series grp XYZ using J1IP for billing Document 99988811u201D
    But when I am trying to display the billing document by using T Code: VF01
    The system is displaying u201CBilling Document 99988811 does not existu201D.
    Please help me!
    Thanks
    Ashu

    Hai Ashu,
    Go to in SAP inbox
    Check any automated mail came to id (used to create VF01) - Message sub will be UPDATE WAS TERMINATED
    and shows error
    Error Info...   8I 336: Error in allocating Excise invoice
    In that case
    1. in T code: SNRO
    Obejct : J_1iexcloc
    for the plant series group
    2. T code : SNRO
    object : J_1iintpr2
    for the plant Excise group
    3. T code : SNUM
    Object : J_liintnum
    Maintain 01 - 2011 - 00001 - 10000000
    And then create VF01 again and check in VF03, even then it says Document does not exist
    ONLY THEN CHECK
    Go to the customer master and check what is the country mentioned in the Customer master for the customer
    If it is other that India this error may come.
    Regards,
    Mani

  • I have to convert my resume to Word.  Please help.

    Can someone please help me.  I have spent way too much time on this.  There is a job website that only accepts word.  And now that I've opened my resume on my new MacBook Pro, i can only get a PDF.  Please provide some direction. 

    Do you have the application Pages? In Pages you Export > Word
    In which application did you ope your resumé?

  • SQL Loader error: SQL*Loader-926. Please help

    Hi,
    While loading some files to my database table, I am getting the following error. I am using 'Truncate' option while loading the file:
    Error:
    ====
    SQL*Loader-926: OCI error while executing delete/truncate (due to REPLACE/TRUNCATE keyword) for table LOS_STAGE_DS4
    ORA-01426: numeric overflow
    Here's the loader properties(excerpts from load log)
    ================================
    SQL*Loader: Release 11.1.0.6.0 - Production on Fri Nov 26 04:54:18 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Control File: d:\Prod\rent_Load\Bin\rent_Load.ctl
    Data File: d:\Prod\rent_Load\Data\rent.704
    Bad File: d:\Prod\rent_Load\Bad\rent.704
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 1000000000
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table LS_STAGE, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    Column Name Position Len Term Encl Datatype
    Could someone please help and advise what is the root cause of this error?
    Thanks,

    The root cause is in the error ora-1426, which you can look up in the online error documentation at http://tahiti.oracle.com . No one knows every error message by heart. This means it is expected you look up the error prior to posting, and you don't expect any volunteer in this forum to look up the error on your behalf.
    Also this is a typical candidate for being a known problem, and known problems can be found on My Oracle Support.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Problem with DigiChat and java

    I can't get into a chat room because of a problem with digichat and java

  • How to write this sql query in php code ?

    for example: insert into temp select * from testtable; after this, i will query data from sql below: select * from temp; how to write this php code ? who can help me ? thanks!

  • Restoring iOS devices and app login credentials

    Mostly curious here: I have about 50 apps on my iPhone.  About 20 of these apps require login credentials (e.g., Twitter). I have to restore my iPhone periodically due to syncing issues with iTunes (that's another story).  When I do the restore, I am

  • Use event handler programmatically

    Hello, I use the Labview 8.2.1 and I would like to ask something about event handler. I have some buttons and I use an event handler to perform their tasks. The buttons are used only with the mouse and not programmatically. Now, I want to use a butto

  • Please tell me some information about gmail

    hi, everybody. I'm a long time OSX user but I never used the "mail." Now, I want to try mail with my gmail account but I found it's not that easy. First of all, what type of account is the gmail? IMAP, POP, or Exchange? Next, what is incoming mail se