hello everybody
i am newbie to jsp.
working on some project and struck into some problem.
my poject is about web rendering .
i am creating a buffer image and storing that in to some file .when i am trying to open this file on browser using jsp,it is not showing me the actual image.
my code was working fine with 1e6.it started creating probs in ie8.
if i zoom my image on browser,it is not zooming it but the image that is there in file is responding correctly.
thanx in advance for any
help
anshusharma
-1
Newbie Poster
Recommended Answers
Jump to PostYou been asked by number of our members to also include any relevant coding. This is missing and without it there is little hope somebody will attempt to help you...
Jump to PostWith little modification now, your code is working.
BufferedImage image = (BufferedImage)session.getAttribute("image"); String path = application.getRealPath("/"); String imagePath = path+"images//mapimage.jpeg"; File file =new File(imagePath); FileOutputStream fos=new FileOutputStream(file); ImageIO.write(image,"jpg",fos); fos.flush(); fos.close();
Jump to PostIf you don't get an answer soon don't start another thread asking the same thing. What did you expect? That the very first minute you posted everyone should give you the solution? Your impatience was very annoying, flooding the forum with new threads.
We are not here to serve your …
All 11 Replies
anshusharma
-1
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
anshusharma
-1
Newbie Poster
anshusharma
-1
Newbie Poster
javaAddict
commented:
3 different threads asking the same thing
-1
anshusharma
-1
Newbie Poster
kvprajapati
1,826
Posting Genius
Team Colleague
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
anshusharma
-1
Newbie Poster
anshusharma
-1
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.