python - Convert Kinesis Base64 String to protobuf/JSON -


i pulling data off amazon kinesis stream using python, , data records come off base64 encoded strings. data being put on stream protobuf files, need convert these base64 strings text readable protobuf file or else usable json.

when decode base64 string, 'bytes' object, throws error if try use .decode('utf-8'). how can convert bytes object usable? note if use protoc --decode_raw command line tool can original protobuf message, don't see way in python script


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -