7 Replies Latest reply: May 1, 2014 5:15 AM by jwenting RSS

    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");