aspose 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


Win a copy of Spring in Action this week in the Spring forum!
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: 8927
    
    9

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File upload in Struts