--- a/__init__.py Tue Feb 14 15:15:09 2012 +0100 +++ b/__init__.py Tue Feb 14 15:15:59 2012 +0100 @@ -117,6 +117,7 @@ binary.write(chunk) else: binary.write(fobj.read()) + binary.seek(0) return binary