Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image copy with custom size

 
satyaprasad veeramsetti
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dear,
i have one requirement. i.e., i want to copy one image file from one folder to another folder. Actually Existing image file size is width:100px & height=100px. But i want to get copied image file in destination folder whose size is width=50px & height=50px(50% of original image file). Is it possible to customize the size of image using Servlet. If it possible, Please send me the code.

Thanks in advance.
-Satyaprasad
 
Maneesh Godbole
Saloon Keeper
Posts: 11329
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you share why you want to do the scaling using JSP? JSPs should only be used to render views and should not contain any business logic.

satyaprasad veeramsetti wrote: If it possible, Please send me the code.

Unfortunately, this is not the way things work out here at the Ranch. Show us what you have tried so far, tell us where you are stuck and we will help point you in the right direction.

If this was my requirement, I would start off by hunting for existing libraries which would help me scale images.
 
satyaprasad veeramsetti
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok,
I am using servlet instead of Jsp.
Please give the sample code...............

Thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11329
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
satyaprasad veeramsetti wrote:
Please give the sample code...............

No can do.

If it possible, Please send me the code.

Unfortunately, this is not the way things work out here at the Ranch. Show us what you have tried so far, tell us where you are stuck and we will help point you in the right direction.
If this was my requirement, I would start off by hunting for existing libraries which would help me scale images.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic