sarvagya agarwal
09/25/2022, 8:53 PMmessage File {
bytes file_bytes = 1;
}
message Response {
string some_response = 1;
}
Service UploadService {
rpc uploadFiles(stream File) returns Response;
}
How can I define a service that takes List of Files as a parameter ? The above is fine for a single file.Steve Georgakis
09/26/2022, 7:08 AMsarvagya agarwal
09/26/2022, 7:34 AMSteve Georgakis
09/26/2022, 7:35 AMsarvagya agarwal
09/26/2022, 7:37 AMSteve Georgakis
09/26/2022, 7:38 AMSteve Georgakis
09/26/2022, 7:39 AMsarvagya agarwal
09/26/2022, 7:41 AMsarvagya agarwal
09/26/2022, 7:42 AMmessage FileBytes {
int32_t file_index = 1;
bytes byte_stream = 2;
}
something like thisSteve Georgakis
09/26/2022, 7:48 AMbyte_stream
should contain a whole file. if the file is too big and you want to split that to a stream as well, then you definitely need more parameters. I'm not sure how you can do that thoughSteve Georgakis
09/26/2022, 7:49 AM