Results 1 to 3 of 3
Thread: passing image file to database
- 01-20-2008, 12:50 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 23
- Rep Power
- 0
passing image file to database
Hi
i m having a jsp form which takes the image file as input and i want to pass that file to java class which inserts the image into database..
then how will be the jsp..
i m using --
<input type="file" name="image" id="image" size="35">
is this correct??
how pass this file to java class??
reply plz..
byee
- 01-21-2008, 04:45 AM #2
make sure you put encoding=multipart/form-data
dont worry newbie, we got you covered.
- 01-21-2008, 06:30 AM #3
If u use hibernate then its easy man..
see this
<html:form action="/upload" enctype="multipart/form-data" onsubmit="return validateUploadForm(this)">
file : <html:file property="file"/><html:errors property="file"/><br/>
<html:submit/>
</html:form>
<html:javascript formName="uploadForm"/>k@mi icore
Similar Threads
-
image insertion into database
By abhiN in forum JDBCReplies: 4Last Post: 01-05-2009, 05:09 AM -
Using PreparedStatement to insert image into database
By Java Tip in forum Java TipReplies: 0Last Post: 02-10-2008, 11:25 AM -
Retriving image from database
By Java Tip in forum Java TipReplies: 0Last Post: 02-09-2008, 08:41 PM -
How can I store an image to the database using hibernate
By cryss_tyna in forum JDBCReplies: 0Last Post: 08-15-2007, 01:48 PM -
How to display a database-image in a page?
By simon in forum New To JavaReplies: 1Last Post: 07-23-2007, 11:56 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks