sookasa / box.py

Python client for Box
43 stars 25 forks source link

Thumbnail retrieval #26

Closed tsanch3z closed 10 years ago

tsanch3z commented 10 years ago

I am having some troubles retrieving a file's thumbnail

the get_thumbnail function return the raw field of the server's response and I couldn't find a way to get its content. the read() method doesn't return anything even with a specified length and a call to the data field neither.

The only workaround I have found so far is to return the complete response object in get_thumbnail so I can get the thumbnail using the content or text fields.

Am I missing something about this function usage ?

tals commented 10 years ago

Looks like a bug (no Stream=True, so requests just reads out the stream to content). I'll push a fix later!

tals commented 10 years ago

Fixed by 335a55901b538eca4f77203668a8c6046e60bce2 (released as 1.2.8).

Thanks for reporting!