assuming you are using java (according to past questions)

yes, at least java it is possible. good starting point is following the
json blog post
https://grpc.io/blog/grpc-with-json/

it uses custom marshaller to handle json format. in your case, modify the
marshaller to write to a file.

On Fri, Dec 20, 2019 at 3:29 AM Elhanan Maayan <[email protected]> wrote:

> let's say i have i have a service that will send a stream of protobuff
> messages
>
> i'd like to have a client that won't automatically marshal those messages,
> but will just give me that byte array (let's say i wanted to write them to
> a file along with some meta data)
> and then be able  to parse them with regular protobuff api
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/bc2116f8-a6d7-41f7-9f04-c0dddb130252%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/bc2116f8-a6d7-41f7-9f04-c0dddb130252%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CABu9GjpyVzK9g_xpyCifxx9b0oongjzGiNQDrubSZb9OC%3DcW3w%40mail.gmail.com.

Reply via email to