hello i would like to convert a inputstream wish is loaded from a jpg picture to png format , im using
mp.cover is a bytearray
and how to check if the bytearray is a jpg or png?
tnx.
B4X:
Dim In1 As InputStream
In1.InitializeFromBytesArray(MP.Cover,0,MP.Cover.Length)
Dim out As OutputStream = File.OpenOutput(File.DirInternal,"temp.png", False)
File.Copy2(In1, out)
out.Close
In1.Close
and how to check if the bytearray is a jpg or png?
tnx.