0

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.

4
Contributors
4
Replies
14
Views
8 Years
Discussion Span
Last Post by Srujan1
0
<html>
<head>
	<script>
	function raju()
	{
		document.getElementById("filess").innerHTML="<img src='"+document.r.files.value+"' width='100' height='160'>"
		return true;
	}
	</script>
</head>
<body>
	<form name='r'>
	<input type='file' name='files'  accept="*.jpg" onmouseout="raju();">
	<div id='filess'></div>
	<input type='button' onclick='raju();' value='click'>
	</form>
</body>
</html>

this code use for u .

0

actually i wanna display image on jsp page before storing in database using struts...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.