Exist a way to load a jpeg Image from Array of Bytes?
I try to save the array to file and after load image from file.
This method is sloooow!
I get this array from wi-fi! The time to get this array from pc is very speedly (1sec.) but the save to file is slow(10-20 sec.)
If is possible load a jpeg image directly from an Array of Byte (the time is speedly (1sec + load from array).
My Code is:
Code: Select all
myArrayofImage = ""
...
myArrayofImage = myArrayofImage .. socket:recv()
...
file = io.open("img.jpg","wb")
file:write(myArrayofImage)
file:close()
...
myImage = Image.load("img.jpg")
You know a method for don't save the image to file??
Thanks in advace!!
Stefano Russello (Creator of PSP Brew B) )