Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local response = http.get("https://www.google.com/images/srpr/logo3w.png")
- if response then
- local sResponse = response.readAll()
- response.close()
- local file = fs.open("file.png", "wb")
- for i = 1, #sResponse do
- file.write(string.byte(sResponse, i))
- end
- file.close()
- end
Add Comment
Please, Sign In to add comment