On Tue, Sep 29, 2015 at 9:31 AM, Mike White <mike...@gmail.com> wrote:
> aloha everyone,
>
> i stumbled across this post as i'm hitting this error as well. since i'm a
> newbie to python i had a question on how to implement this. when doing these
> steps,
>
> # Read a message from Java's writeDelimitedTo:
> import google.protobuf.internal.decoder as decoder

buffer = open(sys.argv[1], "rb").read()

>
> # Read length
> (size, position) = decoder._DecodeVarint(buffer, 0)
> # Read the message
> message_object.ParseFromString(buffer[position:position+size])

And then this should work, I think.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to