How to Store word doc in java using oracle9i

hi
my name is jagapathi raju i whant a pice of code that will help me to store word doc in oracle9i please do this for me
bye

i whant a pice of code that will help me to store word doc in oracle9i please do > this for me Nope, imagine we are consultants who just provide you with a direction to your
investigation.
There's a few approachs...
1. You store the entire word document ( or any arbitrary binary file ) in a BLOB
field. ( binary large object ).
Have a search for Oracle, JDBC and BLOB.
2. You somehow extract the text from the Word document, losing all formating,
and store the text in a database field. ( CLOB ) Character large object.
regards,
Owen

Similar Messages

  • How to Store word doc in java using oracle

    hi my name is jagapathi raju i am working in Niit LTD
    can any one tell me how to store A word doc in oracle using java

    Hi Jagapathi
    You can store text/doc files in Database using CLOB/BLOB columns. Let me check if there are any samples...
    Thanks
    Srinivas

  • How to Store word doc in oracle  using java

    hi
    toall
    can any one tell me how to store word doc in oracle9i using java
    bye

    Please refer to
    http://www.databasejournal.com/features/oracle/article.php/3305771

  • How to store and load in java using mapping

    I am doing my project in java, my project consists of producing a card game.
    I my game at the end of each round the computer will ask the player if he/she wants to save the game. I have looked at some methods on how to do this. It seams that I need a type of mapping but how.
    I want to take a String (which is entered by the player) and to this String I want to store various peices of data that can be loaded up later.
    The data that I want to store are has follows
    1. Name of the player - String
    2. Name of the computer- String
    3. Points of computer sofar- Int
    4. Points of player sofar - Int
    5. Target points- Int
    If there is a better way then please tell me. thankyou

    The format of the saved game could be anything. An easy way to do this is by using the MessageFormat class.
    Let's say you use the tab character as a delimiter, and you want to write two strings and 3 ints:
    MessageFormat mf = new MessageFormat("{0}\t{1}\t{2,number}\t{3,number}\t{4,number}";
    Object[] o = new Object[5];
    o[0] = playerName;
    o[1] = computerName;
    o[2] = new Integer(computerPoints);
    o[3] = new Integer(playerPoints);
    o[4] = new Integer(targetPoints);
    String formatted = mf.format(o);
    PrintWriter out = new PrintWriter(new FileWriter("save.txt"));
    out.println(formatted);
    out.close();
    // reading:
    BufferedReader in = new BufferedReader(new FileReader("save.txt"));
    String s = in.readLine();
    Object[] values = mf.parse(s);
    playerName = (String)values[0];
    computerName = (String)values[1];
    computerScore = ((Number)values[2]).intValue();
    playerScore = ((Number)values[3]).intValue();
    targetScore = ((Number)values[4]).intValue();You could also just write each value on its own line and not using MessageFormat, but just read the values line by line and convert String to ints when needed.

  • How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie

    How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie -  simple answers please - Thanks in advance.

    @Pipeline2007 - which version of Microsoft Office have you got? Older versions of Acrobat aren't compatible with the latest versions of Office, see this link for info:
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

  • How to switch from a word doc to another using a keyboard shortcut?

    how to switch from a word doc to another using a keyboard shortcut?

    Cmd+tilde to switch between open Word documents, or
    Cmd+tab to switch between open applications, if that's what you are after?

  • Will I be able to open my 2004 word docs in Lion using Pages?  How about Powerpoint using Keynote?

    Will I be able to open my 2004 word docs in Lion using Pages?  How about 2004 Powerpoint using Keynote?

    KT35 wrote:
    My word 2004 won't open, it says you can't open the aplication Microsoft Word because power PC applications are no longer supported". How can I get it to work?
    You can't.
    The components of MS Office 2004 (which includes Word 2004) are PowerPC apps. In order to run PowerPC apps in Snow Leopard and earlier on an Intel Mac required the assistance of Rosetta software. Lion does not support Rosettta, so such apps can not be used in Lion.
    In order to use your documents in Lion, you will need to -
    • update the apps to a current version, ones which do work in Lion
    • migrate the docs to other compatible apps which do run in Lion, such as Pages.

  • How to setup word docs, converted to PDF on local drive with links to a second file at a page

    how to setup word docs, converted to PDF on local drive with links to a second file at a page
    Need to setup a set of word documents, converted to PDF that has links from one file to a second file at a given page.
    I would like to setup a set of pdf documents, on the hard disk of a PC or Mac, that can be open with acrobat pro running on the same computer and have the link jump to, and open in a new window, in acrobat pro, to a given page of a second document in the set.
    Is there a way to setup a link in word and the conversion to pdf that will result in a link that is equivalent to the acrobat link type  you get when you add a link of the type Go to a page in another document?
    Tools-Advanced Editing-Link tool, make a box
    Check: Go to page view, Next (Create go to view dialog opens)
    Open second document and go to page
    Click “Create go to view dialog” to set up link
    Result is a link, when view by link properties, with an action of
    Go to a page in another document
    File: C:\My Documents\second file.pdf
    Page: 43
    Zoom level: Custom
    I got close but did not solve the problem:
    I have a version that uses links to a website, using #page=43 at the end of the hyperlink.
    That works but will only open to the page if is through the web browser, opening the acrobat reader plugin.
    I need to open from a folder on the local harddisk (with relative links), in acrobat pro to the given page of the pdf, on a PC or a Mac.
    I could bookmark each page “pagenumberxxx” and jump to the bookmark/page if that would get around some problem
    Current Systems in use to create documents with links and view them:
    Windows XP SP3
    Word 2003 SP3
    Acrobat 9 pro version 9.4.4
    Or just to view them:
    Mac OS 10 Lion version 10.7.4
    Acrobat 9 pro version 9.5.1
    (note I have limited understanding of Mac’s)
    John

    No.  There seems to be no automated way to do it.  You can of course go into the PDF and manually add links after you have converted to PDF, but that is what we want to avoid having to do.  We want it to be automatic from the Word doc.

  • I want to email a Pages document as a Word doc. I used to be able to do this by clicking on share then send via mail then on Word and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    I want to email a Pages document as a Word doc. I used to be able to do this by clicking on 'share' then 'send via mail' then on 'Word' and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    It's difficult to do more than guess when you don't say what version of OS X or Pages you're running, but if you're on the latest, have you tried the Share menu -> Send via Mail command?
    If that doesn't help, you may have better luck if you ask in the Pages forum:
    Pages
    When you repost, be sure to include full details about your versions so that people know what it is you're working with.
    Regards.

  • I don't know how to store PDF docs in my iBook library ... can anyone help ?  ?  ?

    I don't know how to store PDF docs in my iBook library ... can anyone help ?  ?  ?

    What I have been doing is exporting documents to PDF's on my PC in Open Office and emial them to myself. I create a lot of ads, fliers and other content on my PC then transfer the content to my iPad though email. I have yet to find a PDF that I cannot choose to open in iBooks which automatically saves it in my library.

  • How to load word .doc-files into java applications?

    Hi,
    I want to load a word .doc-file (or any other type of document) into a java application, as part of the application.
    Is there any java special library to do it?
    Any solution or hint?
    Thank you.

    No, there is no existing Java library to do it that I am aware of. You could write your own, however, as the Word 97 binary file format is published. I am not sure that the Word 2000, or XP formats are as well, but since they put out the 97 presumably they'd do the same with the rest -- although I am suprised that Micro$$$oft even published the 97 format.
    A library such as this would take quite some time write, due to the extensive format, but here's a link to a copy of it just so you can see what it'd take: http://www.redbrick.dcu.ie/~bob/Tech/wword8.html
    Also keep in mind that Micro$$$oft has never remained binary compatable between versions. In short, this means that you'd have to parse each version's documents differently. Not a fun task.
    If a Java library to read Micro$$$oft file formats already does exist, I'm willing to bet that it costs $$$ mucho dinero $$$.
    Hey, aren't proprietary file formats just wonderful?

  • How to Open a MS-Word doc thru Java...??

    Hi,
    I have a requirement of providing a JButton in my app, upon clicking of which, i need to create a Word-Doc ( say xyz.doc & open it ( probably thru Word itself...??!!)
    Does anyone have a clue/idea as to how we could do this ??
    Thanks,
    fritz

    Try JACOB.
    http://sourceforge.net/projects/jacob-project

  • How to secure word docs, access only via username and password?

    I have created a CMS (Content Management System) where
    residents can access publicly made available word documents
    uploaded via the web by authourised members of a residents
    association. (no password needed)
    password only needed to upload
    I have also created a section for excecutive members only
    where documents for coming meetings are kept, but are not yet
    available to general residents. (password is needed to view these)
    All works fine apart from the executive section, all the
    documents seem to get 'spidered' no matter what is in the robot.txt
    file.
    this i know as i have been tracking visitors to it.
    the pages are not yet live or in use as i want to be sure
    that these 'not for public viewing' file are not viewed until they
    are in the public folder.
    each section will have their own folder, but google has
    'spidered' all pages! it seems that google and other sites are not
    taking notice of the robot.txt, i have read on some sites that this
    is common. how they do this is beyond me, i though that you could
    only spider a site that had a home page and that you follow all
    links contained within this initial page.? seems that this is not
    the case.
    what other methods can i try out that will protect these
    files.
    (please do not reply with, do not put them on the site!) i
    have had this with other forums in the past.
    only sesible answers please.
    and thank you in advance for your time.

    i have been busy looking around but not finding anything.
    My PHP scripts at present accept the word docs and store them
    in folders, lets say, www.site.com/secretfolder/...
    One suggestion is to have them in a database, this is not
    idea, but is going to be the last resort.
    the idea i like most is to have the outside the root www
    folder.
    what i am not sure of is how i allow access to them if normal
    access can not be used. i.e. www.site.com/myfolder/file.doc
    one way that has been suggested is streaming but this
    completely eludes me, i first thought streaming was for sound and
    video, but that aside, please can someone provide some links to
    sites that show some examples or more information on how i do this.
    i do not need the file to be uploaded as i can change my
    scripts to upload to the new folder that is outside the root www
    folder, what i do not understand is how i get the file back from
    this outside root folder to the user that is wanting to view it.
    my way of thinking is to create a temp folder inside the www
    folder but this means that the files will then be available to the
    robots again and if i was to have the folder cleaned after the file
    is taken what happens if the server or the persons pc was to crash
    or something, then the script will not complete and the file will
    still be available to view by the robots.
    or is their another way

  • How to store the images in KM using Code

    Hello,
    i retreived the images from KM using the following code.
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    import com.sapportals.portal.prt.resource.IResource;
    public class ThumbnailTes extends AbstractPortalComponent {
         /* (non-Javadoc)
    @see com.sapportals.portal.prt.component.AbstractPortalComponent#doContent(com.sapportals.portal.prt.component.IPortalComponentRequest, com.sapportals.portal.prt.component.IPortalComponentResponse)
         public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
    String path =request.getResource(IResource.IMAGE,"images/sap1.gif").getResourceInformation().getURL(request);
                   response.write("<img src = "path"/>");
    but i want to store the images in KM using code.Can anybody help me.
    acutally the image is my location(c:/images/sap1/jpg).i want to upload this image to KM using code.
    Can anybody help me how to do that?

    Hi Kasturi,
    > not accepting the points
    It worked on this and on one other thread, but this is still open: How to upload the image
    > want upload the images from the client side machine
    > to KM
    In the thread I just referred to, I already provided information about the HTMLB upload control. With this at hand, you'll get the file from the client to the server.
    At server side, get an ICollection instance where you want to store the file and create the corresponding resource. See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/knowledge management/com/sapportals/wcm/repository/icollection.html#createresource(java.lang.String,%20com.sapportals.wcm.repository.IPropertyMap,%20com.sapportals.wcm.util.content.IContent)
    Hope it helps
    Detlev

  • Help:- Store Word file in database using blob

    Hai all,
    i want to store word document in database and reterieve from database but i don't have any idea i heared about blob but i don't know how to make it any one have source code or example form pls send me
    email: [email protected]

    Hello,
    First of all, you have got to be granted the privilege to read and write to the file system, this is a must to use BFile read access.
    A global function bfilename returns a bfile taking the file path as an argument is needed to construct a blob object through dbms_lob.loadfromfile.
    A very helpful example I found on orafaq follows:Create a link to the directory where the file to load in the blob is
    (connect as system then grant read privilege to your user):
    create or replace directory blob_dir as 'C:\Documents';
    Custom the following procedure that I copied from a Thread
    create or replace procedure blob_ins(p_id in number, p_filename in
    varchar2) as
    l_bfile bfile;
    l_blob blob;
    begin
    insert into blob_test(p_id, empty_blob())
    returning blob_file into l_blob;
    l_bfile := bfilename('BLOB_DIR', p_filename);
    dbms_lob.fileopen(l_bfile);
    dbms_lob.loadfromfile(l_blob, l_bfile, dbms_lob.getlength(l_bfile));
    dbms_lob.fileclose(l_bfile);
    commit;
    return;
    end blob_ins;
    You can use UTL_FILE package in another way, but this is much more safe;
    Have Fun
    Hossam Al Din

Maybe you are looking for

  • Please, if you can help me

    Dear Sir, I have file sprot.dat, each set of rows separated by // , when i use DataInputStream in = new DataInputStream(new FileInputStream("test.dat")); while ((in.readLine()) != null) System.out.println(in.readLine() ); the result is not as i expec

  • Console initialization issues on VM manager 3.1.1

    Hi, I created a guest vm and tried to start it up, it reports the console initialization error. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error Log-dirty: no command yet. I/O request not ready: 0, ptr: 0, port: 0, data: 0,

  • Some weird behaviour of my Applet

    I've created an applet which uses Java2D to blur an image file (image0.jpg)and display it in the browser. I can compile it with no problem but when i run the applet using the browser. The following message appears in the bottom of the browser "Start:

  • How long does it typically take to repair a cracked screen on an ipad?

    How long does it take to repair a cracked screen on an ipad?

  • I am having trouble downloading Itunes Match?

    I cant get I tunes Match to download from my main computer. I was also wondering if I can download it to my son's computer which also has Itunes on it? Or does it have to be purchased on the main computer that has the ipods registerd orginally?