Kitomas

Untitled

Aug 29th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. local response = http.get("https://www.google.com/images/srpr/logo3w.png")
  2. if response then
  3. local sResponse = response.readAll()
  4. response.close()
  5. local file = fs.open("file.png", "wb")
  6. for i = 1, #sResponse do
  7. file.write(string.byte(sResponse, i))
  8. end
  9. file.close()
  10. end
Add Comment
Please, Sign In to add comment