Deepak Bala wrote:You cannot resize the output stream. You need to resize the image.
thank you...
but i don't know how resize image in jsp. Can we temporary write image in server directory and resize then.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
You could just use size attributes in the image tag. If that doesn't work, you could do a normal image transform and stream the resulting bytes--you don't need to write and read and entirely new file, although by doing so you'd have a "cached" transformed image.
David Newton wrote:You could just use size attributes in the image tag. If that doesn't work, you could do a normal image transform and stream the resulting bytes--you don't need to write and read and entirely new file, although by doing so you'd have a "cached" transformed image.
thank you
can we store output stream in server temporary directory. and then display on page. if yes please tell me. How?