File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes File upload in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "File upload in Struts" Watch "File upload in Struts" New topic
Author

File upload in Struts

Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Hi guys,

I want to upload a file using struts. I can use file upload in struts. But i dont know how to save it in backend database. How to convert it to store in the database... Help me out.

Abu.A
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8709
    
    6

Abubacker Siddik wrote:But i dont know how to save it in backend database. How to convert it to store in the database... Help me out.


So your question is not about Struts, it is about how to store binary data in a database? Try searching for "blob" (Binary Large OBject). Storing large amounts of binary data in a database is frowned upon in general. Databases are designed for storing and querying relational data. File systems are designed for storing binary data.
In any case, I'll move this post to the JDBC forum.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: File upload in Struts
 
Similar Threads
Regarding Upload a file
File Upload and Download
Using struts 1.2 how to upload a file into database and download it
How can I upload a File using Struts
How can i upload a file using Struts