7 Replies Latest reply on May 1, 2014 10:15 AM by jwenting

    how to convert byte array to jpg file using java.


      Hi, i have I byte array ,That I was getting from the gps packets , I need to convert that into jpg file please explain me.



      public static void writejpegfile(byte[] someByteArray) throws FileNotFoundException, IOException {


               FileOutputStream fos = new FileOutputStream("image" + new Date().getTime() + ".jpg")

              try {



      //            System.out.println(output);


              } finally {

                  System.out.println("image created");