Hi there...
well i am using this fabulous snippet [B4X][XUI] Image to JPEG byte array with resize/quality options but... i ve met something that don't want to have, the image.writetostream is using hdd/ssd when want to compress quality of jpeg... is it possible to avoid... ?
If you have a timer and some/many XUIImageToJPEGByteArray ..and go a "walk" at appdata\local\temp you will see a lot of imageioxxxxxxxxxxxxxxxxxxxxxxxx.tmp files creating/deleting for doing the job... this reading/writting to disk creates a delay to that i want to do...
is it possible using something different to do my job faster / on the fly... ?
ps: i am sure... that ImageWriter/imageio do the same in java...
well i am using this fabulous snippet [B4X][XUI] Image to JPEG byte array with resize/quality options but... i ve met something that don't want to have, the image.writetostream is using hdd/ssd when want to compress quality of jpeg... is it possible to avoid... ?
If you have a timer and some/many XUIImageToJPEGByteArray ..and go a "walk" at appdata\local\temp you will see a lot of imageioxxxxxxxxxxxxxxxxxxxxxxxx.tmp files creating/deleting for doing the job... this reading/writting to disk creates a delay to that i want to do...
B4X:
Dim out As OutputStream
out.InitializeToBytesArray(0)
image.WriteToStream(out, quality, "JPEG") 'That seems creating .tmp file to do the job....
out.Close
is it possible using something different to do my job faster / on the fly... ?
ps: i am sure... that ImageWriter/imageio do the same in java...
Last edited: