Finding MIME type for a data stream

Irmen de Jong irmen.NOSPAM at xs4all.nl
Thu Mar 8 21:12:42 EST 2012


On 8-3-2012 23:34, Tobiah wrote:
> Also, I realize that I could write the data to a file
> and then use one of the modules that want a file path.
> I would prefer not to do that.
> 
> Thanks
> 

Use StringIO then, instead of a file on disk

Irmen




More information about the Python-list mailing list