Pass `InputStream` to `Protobuf.load`
See original GitHub issueWhat is your use-case and why do you need this feature?
AFAIU, currently I can only to pass a ByteArray
when deserializing data.
I wonder if it would be possible to pass an InputStream
instead.
I want to deserialize a variable-size data structure coming from the network, so I don’t know the exact size beforehand to create a ByteArray
.
(I’m sorry if I missed some important information about the design that invalidates this question.)
Describe the solution you’d like
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to parse from InputStream using Protocol Buffers when ...
I have defined in my .proto file different messages like 'Login', 'Logout', etc. and generated the java file.
Read more >Protocol Buffer Basics: Java - Google Developers
This tutorial provides a basic Java programmer's introduction to working with protocol buffers. By walking through creating a simple example application, ...
Read more >How to resolve a custom option in a protocol buffer ...
I'm using protocol buffers 2.5 with Java. I have a proto file that defines a custom option. Another proto file uses that custom...
Read more >Protocol Buffers & A Spring Boot Example
Protocol buffers is a method of serializing data , like XML and JSON. ... convert protocol buffer messages in the form of an...
Read more >TIBCO Adapters for Google Protocol Buffers Sample
Running the Protobuf Sample in StreamBase Studio · In the Project Explorer view, open the sample you just loaded. · Open the src/main/eventflow/...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AlexanderShniperson ,
This is how I’m doing:
It’s actually very straightforward.
Closing as duplicate