title: How to convert PNG<->JPEG<->TIFF images
body: <p>is there any way I can convert PNG&lt;->JPEG&lt;->TIFF images in Java?
  I have String i/p passing parameter (PNG or JPEG converted to []byte which get converted to String) to ConvertImage(String xyz) method.</p>
  
  <p>String ConvertImage(String xyz)</p>
  
  <p>So I am looking for following conversion from single method and return byte array or string and then finally I want to store in DB.</p>
  
  <p>1.if i/p is PNG converted o/p is JPEG </p>
  
  <p>2.if i/p is JPEG converted  o/p is PNG</p>
  
  <p>3.If i/p is PNG or JPEG converted  o/p is TIFF</p>
  
  <p>I am using JAI right now for this conversion(In my prev post I did not mention all these details sorry about that) but don't want to use JAI now.</p>
  
  <p>Please let me know if you have any quick solution for all these 3 types?</p>
  
  <p>Thank you very much in advance!!!</p>