I'm not an expert with Python, but you can pass the result of a file.read()
operation into message.ParseFromString(...)
without having to build a new string type or anything.
Mike Weller
2009-12-07 14:23:20
I'm not an expert with Python, but you can pass the result of a file.read()
operation into message.ParseFromString(...)
without having to build a new string type or anything.
Python strings can contain any character, i.e. they are capable of holding "binary" data directly. There should be no need to convert from string to "binary".