OOP-ResearchMake It Simpler by Object Oriented Programming

How to save the binary contents of the uploaded file by JDBC

This Java API stores the binary contents of the uploaded file into SQL table through JDBC, along with the file name and content-type. For each file, this API issues the unique ID.

This Java API is usefull when your JSP/Servlet accepts the file upload request with multipart/form-data encoding. By the help of this Java API, JSP/Servlet on Apache Tomcat saves the binary contents of the uploaded file into the SQL table. At this time, this Java API issues the unique ID for each file. JSP/Servlet can store this unique ID into another SQL table within the web application. With this ID specified, this Java API retriveaves the binary contents of the uploaded file from the SQL table. And the Servlet in this Java API can send back the binary contents of the uploaded file along with the appropriate content-type header.

Putting it all togather : OOP Bento framework

This Java API is now a part of OOP Bento framework. In this MVC framework by XML, you can write all the GUIs in the web application in the normal HTML, XHTML, WML, HDML or any other mark-up languages. And you no longer need to bother about the user authentication and the session tracking. Because its full working source code example will be the good starting point of this Java API, please also visit the web site of Bento framework.


Java API for saving the file into SQL table by JDBC

This API saves/retrieves the file into/from SQL table through JDBC. Along with the binary contents of the file, the file name and the content-type can also be persistent. The user of your web application can upload the file by multipart/form-data encoding, and your JSP/Servlet on Tomcat can save it into SQL database by this API.
For each file saved on the SQL table, the unique ID is issued. This ID can be saved into another SQL table within your web application, and can be used to get back the uploaded file later.

Used along with a series of Java API by OOP-Research, you can easily build up web application or WAP services. For instance, blog or BBS with photo image can be implemented by JSP/Servlet.



Go Site Map Read More

Download

This API is now a part of Bento framework. There are the better documentations and source code examples on the web site for Bento framework. There, you will also find the link to download the entire framework or each API in it.

Caution!
All the APIs for Servlet/JSP introduced by this web site are now included in Bento framework:
  • Simpler than JSTL or Apache Struts
  • MVC framework by HTML
  • Input validation from CGI FORM
  • Easy user authentication
  • Easy localization (L10n)
To download the APIs and source code examples, please visit the web site of Bento framework.


JBuilder 2007


General Information

For Java Development

Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.


ALL CONTENTS COPYRIGHT 1997-2007, OOP-Research Corporation. All rights reserved.