Save it as a BLOB in the database. Display it using an image tag or href tag in an HTML page. The URL for the tag is a servlet that reads it out of the database and returns it with Content-Type set to image/gif or image/jpeg, etc.
Paul Copeland JOT Servlets - A Framework for Servlet Applications - http://www.jotobjects.com
Date: Mon, 27 Sep 2004 18:32:56 +0700
From: andy susanto <[EMAIL PROTECTED]> Subject: How To Insert Image Into Mqsql data type ?(urgent)
hai,
i would to ask,
1. How to insert an image into a database Mysql from Servlet?(Can you give a simple example) 2. How to get that image from a database an show that in Servlet ?
TIA,
andy
___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
