Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2008, 02:50 PM
Member
 
Join Date: Jan 2008
Posts: 23
abhiN is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-21-2008, 06:45 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 263
roots is on a distinguished road
make sure you put encoding=multipart/form-data
__________________
dont worry newbie, we got you covered.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-21-2008, 08:30 AM
khamuruddeen's Avatar
Member
 
Join Date: Dec 2007
Posts: 24
khamuruddeen is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
image insertion into database abhiN Database 3 06-06-2008 03:31 PM
Using PreparedStatement to insert image into database Java Tip Java Tips 0 02-10-2008 01:25 PM
Retriving image from database Java Tip Java Tips 0 02-09-2008 10:41 PM
How can I store an image to the database using hibernate cryss_tyna Database 0 08-15-2007 03:48 PM
How to display a database-image in a page? simon New To Java 1 07-24-2007 01:56 AM


All times are GMT +3. The time now is 11:29 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org