This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes Uploaded file to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Uploaded file to database" Watch "Uploaded file to database" New topic
Author

Uploaded file to database

Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

I have coded the following to set the uploaded data to database...



In oracle i have declared that datatype as BLOB....But when I am viewing the table it is showing (HUGE BLOB) as content....What data type should be appropriate for this..

My second problem is getFiledesc() and getFileDept() cant getting the value from the textbox....It is getting null....Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Uploaded file to database