Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to maintain Aspect Ratio of Image using struts2

 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to retrieve image from [oracle 10g] database and display the same in jsp using struts2.
In DB the size of image may be >=1mb
the size of image in jsp while displaying is 768x768.
when the size get changed the aspect ratio of the image also get changed.
kindly guide me how to maintain the aspect ratio of the image using struts2.

Regards,
Ram
 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using java i tried it.
If any one want source code for maintaining aspect ratio of the image.
pm me i will send you.

Else kindly move this topic to java category i will post the source code in this forum itself.

Cheers,
ram
 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this link
It will answer your question
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic