If I have a file with many protocol buffers messages saved in one after each other, how do I read that file back to a collection in Java?
How did you delimit the protobuf messages?
If you just wrote them one after the other, without using writeDelimitedTo you can't read them back, it's just not a format that protocol buffers support.
If you did use writeDelimitedTo, I think you can figure out the corresponding parse method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With