Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('path/to/image', 'rb') as fp:
- response = self.client.post('some-url', {
- 'image': fp
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement