Re: [go-nuts] How to implement a file download service in GRPC

2019-08-01 Thread Rampradeep Nalluri
Thanks Edward, followed this and it worked https://github.com/philips/grpc-gateway-example/blob/master/cmd/serve.go#L91 https://github.com/grpc-ecosystem/grpc-gateway/issues/410 Regards, Ram On Wed, Jul 31, 2019 at 1:26 PM Edward Muller wrote: > https://github.com/grpc-ecosystem/grpc-gateway >

Re: [go-nuts] How to implement a file download service in GRPC

2019-07-31 Thread Edward Muller
https://github.com/grpc-ecosystem/grpc-gateway > On Jul 30, 2019, at 4:12 PM, Rampradeep Nalluri > 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

Re: [go-nuts] How to implement a file download service in GRPC

2019-07-31 Thread Burak Serdar
On Wed, Jul 31, 2019 at 8:25 AM Rampradeep Nalluri wrote: > > If we do that clients like browsers or curl can not use the download API > directly. True. You would need an API front-end to expose the grpc stream. > > > > > On Tue, Jul 30, 2019, 5:41 PM Burak Serdar wrote: >> >> On Tue, Jul 30,

Re: [go-nuts] How to implement a file download service in GRPC

2019-07-31 Thread Rampradeep Nalluri
If we do that clients like browsers or curl can not use the download API directly. On Tue, Jul 30, 2019, 5:41 PM Burak Serdar wrote: > On Tue, Jul 30, 2019 at 5:49 PM Rampradeep Nalluri > wrote: > > > > It is easy to pipe a file reader to http.ResponseWriter object using > io.copy() when I

Re: [go-nuts] How to implement a file download service in GRPC

2019-07-30 Thread Burak Serdar
On Tue, Jul 30, 2019 at 5:49 PM Rampradeep Nalluri 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

[go-nuts] How to implement a file download service in GRPC

2019-07-30 Thread Rampradeep Nalluri
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? -Ram -- You received this message because you are