Image Upload & Display Image

Reply

Join Date: Mar 2009
Posts: 1
Reputation: s4ualex is an unknown quantity at this point 
Solved Threads: 0
s4ualex s4ualex is offline Offline
Newbie Poster

Image Upload & Display Image

 
0
  #1
Mar 17th, 2009
Hi, This is Alex,

After upoading the image, i dont want to store the image immediately, i need to display the image in confirmation page and the user is confimed i need to store it in physical location.

i know how to store in physical location. but i dont know how to display the uploaded image immediately in jsp(not from the physical location).

please guide me in this.

i hope i ll get answer here.

Thank you.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,185
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Image Upload & Display Image

 
0
  #2
Mar 17th, 2009
Guiding would be far more easier if you provide code you used upload your image...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 5
Reputation: swathirao is an unknown quantity at this point 
Solved Threads: 1
swathirao swathirao is offline Offline
Newbie Poster

Re: Image Upload & Display Image

 
0
  #3
Jul 14th, 2009
  1. <html>
  2. <head>
  3. <script>
  4. function raju()
  5. {
  6. document.getElementById("filess").innerHTML="<img src='"+document.r.files.value+"' width='100' height='160'>"
  7. return true;
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <form name='r'>
  13. <input type='file' name='files' accept="*.jpg" onmouseout="raju();">
  14. <div id='filess'></div>
  15. <input type='button' onclick='raju();' value='click'>
  16. </form>
  17. </body>
  18. </html>
this code use for u .
Last edited by peter_budo; Jul 14th, 2009 at 5:28 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC