I am developing an application to upload a file to database.. Actually i don't know which data type to use in the database to store the file and how to store the file in database... please help me..
Thanks in advance
Lalitha.
this is my form bean,
LoginFormBean.java
-------------
I don't know which code to be written in action class to store the data.. please give me some suggestions..
This isn't really a Struts problem. Your database field should be declared some sort of binary data type like RAW in Oracle. Java has a BLOB object that abstracts access to that type. FormFile has methods to get the file data. You should be able to put the pieces together.