'Can a GRPC response be only bytes
I want to create a gRPC endpoint for downloading a file. It needs to work with curl.
message GetArtifactRequest {
  string namespace = 1;
}
message GetArtifactResponse {
  bytes content = 1;
}
service EventService {
  rpc GetArtifact(GetArtifactRequest) returns (GetArtifactResponse) {
    option (google.api.http) = {
      get : "/api/v1/artifacts/{namespace}"
    };
  }
}
How can I have it so that the response body in just bytes? Is that even possible.
Solution 1:[1]
This is impossible to achieve.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | Alex Collins | 
