I have a class that uploads a file to Flickr. The file is of type
'InMemoryUploadedFile'.
I would like to know how to convert or pass the data in the 'InMemoryUploadedFile' file, to a format for flickr's API?
Eg:
{'photo': ('image.jpg', <InMemoryUploadedFile: image.jpg (image/jpeg)>)}
Upload API: https://www.flickr.com/services/api/upload.api.html
Error Code
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
<err code="4" msg="Filesize was zero" />
</rsp>