Fixes glance add / update / image-create / image-update on Windows
Fixes glance add / update / image-create / image-update on Windows

Fixes Bug #1050345

The image upload hangs if the file contains a byte with value 0x1A (EOF), due to
the fact that the file or stdin streams are treated as text and not
binary streams. This fix sets the proper binary mode.

Change-Id: I3425cb9729a8da4d1b73fbfba06fd6f2c7e8833e

alexpilotti/python-glanceclient,ntt-sic/python-glanceclient,JioCloud/python-glanceclient,metacloud/python-glanceclient,citrix-openstack-build/python-glanceclient,varunarya10/python-glanceclient,alexpilotti/python-glanceclient,ntt-sic/python-glanceclient,openstack/python-glanceclient,metacloud/python-glanceclient,klmitch/python-glanceclient,varunarya10/python-glanceclient,openstack/python-glanceclient,klmitch/python-glanceclient,JioCloud/python-glanceclient,mmasaki/python-glanceclient,mmasaki/python-glanceclient,citrix-openstack-build/python-glanceclient