Guest User

Untitled

a guest
Nov 12th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. imgData = io.BytesIO(data[22::].encode())
  2. f = 'temp.png'
  3. client = boto3.client('s3')
  4. client.upload_fileobj(imgData, "bucketname", "temp.png", ExtraArgs={"ContentType": "image/png"})
Add Comment
Please, Sign In to add comment