previous |
index
Storing Files in a Database
- The example above uses the target attribute of the
corejsf:upload tag to put the file data in a java.io.File
object.
- Use the value attribute to store the file in a bean:
uploadResume2.jsp
- In the associated action method, convert to an SQL Blob type and
store in a table.
- Can use the org.hsqldb.jdbcBlob class.
The HSQLDB API is shown
HERE.
- Here is a SKETCH
of how this might work.
previous |
index