Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Inserting a pdf file in mysql database using jdbc

843854Dec 2 2004 — edited Dec 12 2006
hi guys,
i'm developing an application, where i have to upload the documents and store it in the database.
i'm using mysql db. using the jdbc statements i have stored the contents of the pdf file. But, i'm unable to read the content, it's looks like junk values. and when i retrieved using the stream objects. it looks like the same.

i'm able to store and retrieve the text based and image files.
is it possible to store pdf and word documents in the database columns directly??

any ideas are appreciated.

thanks in advance,
-bala
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2007
Added on Dec 2 2004
17 comments
2,577 views