Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 19090, OOP MimeParser Version 2.6

by Jun Inamori Email: Anonymous


File upload JSP/Servlet through multipart/form-data. Checks if the binary contents are really PNG, JPEG, GIF or PDF.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For JBuilder, Version 6.0  to 8.0 85 downloads
Copyright: Commercial use requires permission


Size: 185,143 bytes
Updated on Mon, 11 Nov 2002 15:28:27 GMT
Originally uploaded on Wed, 30 Oct 2002 02:44:24 GMT
SHA1 Hash: C937CB9832D10D38227679F98A1E234410BF1694
MD5 Hash: 660EDEAF242A98F855F53AA554AFFF5D

    Explore the files in this upload

Description
OOP MimeParser is the Java API for file upload JSP/Servlet. This Java API parses InputStream of HTTP POST request with multipart/form-data encode. By this Java API, only the single method call is enough for your file upload Servlets/JSP.
Your Servlets/JSP has the full control over where to save the uploaded files. Or, your Servlets/JSP can get the binary contents of the uploaded files, without saving the uploaded files on the disk.
The acceptable mime-types (Content-Type) and maximum file size can be specified in the property file. If the user tries to upload larger files or files of the invalid mime-types, this API will throw the exception, i.e. your Servlets/JSP has a chance to catch the exception and show the appropriate message.
Optionally, your JSP/Servlet can check if the binary contents of the uploaded file are really the ones for PNG, GIF, JPEG or PDF. If the binary contents do not match with the expected pattern for PNG, GIF, JPEG or PDF, this API will throw the exception. By this way, your JSP/Servlet can prevent the fake PNG, GIF, JPEG or PDF to be uploaded.
In addition, you can specify the charset to decode the text parameter (text data from text input or text area) from the CGI FORM with multipart/form-data. This is very important to get the text parameters with the 2 bytes characters, such as Japanese Shift_JIS, Chinese BIG5, Chinese GB2312 or Russian KOI8-R.
For details, please read the introduction at:
http://www.oop-reserch.com/mime_1_1.html
And, please try and download the example at:
http://www.oop-reserch.com/mime_example_3.html

For more information, see http://www.oop-reserch.com/mime_1_1.html

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04