On Tue, Mar 10, 2015 at 12:01 PM, Dave Angel <davea at davea.name> wrote: >> data = open("some_file", "rb") > > > You accidentally omitted the part where you read() the data > > data = data.read() You know, that would help... a LOT. :) ChrisA