Small example of transfer the file

36 views
Skip to first unread message

nura...@gmail.com

unread,
Apr 19, 2019, 8:25:48 AM4/19/19
to grpc.io
Hi everyone! Please show me a small example transfer the file from the client to the server on C#.
I think proto file should be like this:

service Greeter {
  rpc SayHello (stream HelloRequest) returns (HelloReply) {}
}
message HelloRequest {
  bytes name = 1;
}
message HelloReply {
  string message = 1;
}


As I understand it, you need to use streams to transfer large files.

Eric Anderson

unread,
Apr 19, 2019, 11:22:04 AM4/19/19
to nura...@gmail.com, grpc.io
https://stackoverflow.com/a/46106469/4690866 may be helpful. It links to another question that has multiple answers that may each provide some help.

--
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/38cead47-e3ba-4536-a8a3-420557118e64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages