This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 8839
    
    7

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
 
Similar Threads
How can I upload a File using Struts
Using struts 1.2 how to upload a file into database and download it
Regarding Upload a file
How can i upload a file using Struts
File Upload and Download