I make my first web server on Lua, and now I need to send a picture, and only the word PNG comes to the browser and nothing else.
In C # there is a File.ReadAllBytes(path)
method File.ReadAllBytes(path)
it reads all the bytes from the file. Is there a similar in Lua? Rummaged all documentation, but did not find. I stopped at io.open(path,"rb"):read("*all")
.
open("rb")
- Mike V.