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 {
fos.write(someByteArray);
// System.out.println(output);
} finally {
System.out.println("image created");
fos.close();