3 Replies Latest reply: Apr 9, 2007 3:11 PM by 807606 RSS

    From byte[] that rapp an image file TO a byte[] of the same file but in jpg

    807606
      Hello
      I've a byte[]. These bytes are of an image file with any extension (gif, png, jpeg etc.)
      I want to convert these byte[] in another byte[] array that has the same image but represented in jpeg format.

      I've found something like

      JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder .... and others

      but I've a lot of confusion about what are the steps to do something like that..
      Someone can post some sample code?
      thanks a lot guys
      giada