On Tue, Jul 30, 2019 at 5:49 PM Rampradeep Nalluri <n.ramprad...@gmail.com> wrote: > > It is easy to pipe a file reader to http.ResponseWriter object using > io.copy() when I implement a large file download service over REST. But how > do we handle similar requirement with gRPC server to REST client? > > what is the standard way?
I don't know what the standard way is, but I do something similar using a grpc stream. You have to deal with breaking the data into chunks and stream to the grpc server. You could implement a client-side streaming API to receive the file via grpc on the receiving side, implement a Write([]byte) method on the sending side with chunking etc. and use copy(). > > -Ram > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/903ac408-ff6c-4c0b-a4f7-801d4d6f7110%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAMV2RqoR_EfrYhaswA0kzmCR%3DgpMCcWF9mqi30H4WmMy8x0Mkw%40mail.gmail.com.