473,396 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Uploading image file and displaying image in the same page

46
hi!

can anybody give me some example code...for how to upload an image file in a JSP page and display that image in the same JSP without reloading/refreshing the page????plzzzzz help me..
Aug 31 '07 #1
4 4254
r035198x
13,262 8TB
hi!

can anybody give me some example code...for how to upload an image file in a JSP page and display that image in the same JSP without reloading/refreshing the page????plzzzzz help me..
Ask the question in the Javascript/Ajax forum.
Aug 31 '07 #2
honey99
46
Ask the question in the Javascript/Ajax forum.
i have already posted this question in ajax.javascript forum..they told me to post question in java forum.........wht should i do
Aug 31 '07 #3
r035198x
13,262 8TB
i have already posted this question in ajax.javascript forum..they told me to post question in java forum.........wht should i do
Your images are stored in a database?
JSPs run at the server. You cannot change the image being displayed without going back to the database and that requires it to run at the server. Now you want to do this without reloading the JSP, so you need to use AJAX which basically entails creating a Javascript function that connects to a server side script running on the server and returns the result to the page without a form submit or a page reload.
Aug 31 '07 #4
honey99
46
Your images are stored in a database?
JSPs run at the server. You cannot change the image being displayed without going back to the database and that requires it to run at the server. Now you want to do this without reloading the JSP, so you need to use AJAX which basically entails creating a Javascript function that connects to a server side script running on the server and returns the result to the page without a form submit or a page reload.
Thanks for u r sugessions.....i''ll try with AJAX
Aug 31 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: http://www.visual-basic-data-mining.net/forum | last post by:
I have a page where it requires user to upload an image file to the server. For the uploading, i am using HTML imput file control. Is there a way where after the user has selected a picture file,...
11
by: Parrot | last post by:
Is there any routine I can call to reduce the size of an image file after uploading a file from a client. I am looking to reduce file sizes programmatically using C# in my web page after uploading....
3
by: CD | last post by:
An application is logging faxes sent in SQL2000 image column type. I have found code on the net but what it is doing is prompting to save to local which is fine for single page image. Not good...
2
by: miladhatam | last post by:
i've made a dynamic website that upload an image file in image directory with fileuploader control and it's name was renamed and get ready to show with image control but i have a problem i want...
0
by: aris1234 | last post by:
hello.. How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then...
0
by: chithrausha | last post by:
Iam having an HTML file where in iam writing some text and it has some background image embedded in it.i want to convert that html file to image file and want to export it in pdf format.(without...
1
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for...
7
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code ...
6
by: mfaisalwarraich | last post by:
hi every body, i am using the following code to upload an image. it directly jumps to the error message please tell me what im doing wrong here. <form name="myform"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.