Question : Oeacle Storeage of word, pdf, excel documents in

Hello All,

I would like to store various types of documents in an oracle database.  I did find the following link:

http://www.dbasupport.com/oracle/ora9i/storing_word_docs.shtml

I found how to create

CREATE TABLE my_docs
            (doc_id   NUMBER,
            bfile_loc BFILE,
            doc_title VARCHAR2(255),
            doc_blob  BLOB DEFAULT EMPTY_BLOB() );



2.) How do I retrieve the word document from the database? will it open with ms word?
3.) doc_id, it is the primary key.  Can it be a foriegn key?
4.) Does the document live within the database or is the document in a drive that is referenced.

Jsp perspective
1.)  How do I get the word doc into the database using jsp? (may need to open ne question)

Please not the article associated with the link is clear but I am looking for a new perspective as a means to gain better understanding blob,clob,lob types.

Answer : Oeacle Storeage of word, pdf, excel documents in

Q
1) http://www.theserverside.com/discussions/thread.tss?thread_id=33374
2) http://www.oracle.com/technology/sample_code/tech/windows/odpnet/howto/anonyblock/index.html
3) why not, if this value is present in master table u can make this as foreign key aslo, depends on your DB schema design
4) the document is stored in data base, if u use BLOB, if u use BFILE, it stores a reference and the actual file is stored in db servers filesystem.
Random Solutions  
 
programming4us programming4us