Is there any way I can encode an image as a string?
I have tried using the following code, but the print statement does not give me a string nearly long enough for an image file:
[lua]path = system.pathForFile(“myfile.jpg”, system.ResourceDirectory)
file = io.open(path, “r”)
image = file:read("*a")
print(image)[/lua]