Advertisement
opexxx

flask1pixel.py

May 22nd, 2015
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. @app.route("/gif")
  2. def gif():
  3.   gif = 'R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='
  4.   gif_str = base64.b64decode(gif)
  5.   return send_file(io.BytesIO(gif_str), mimetype='image/gif')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement