Unary service expects “data” field in base64 encode, is there a way I can have multiple json files with different set of “data” field value as base64 encode & pass as req ?
const req = [ {
"data": "SGVsbG8gV29ybGQ=",
"fileName": "Sanity_FS",
"namespace": "fseth",
"topic": "fsdata"
},
{
"data": "SG93IGFyZSB5b3UgZG9pbmc=",
"fileName": "Sanity_FS",
"namespace": "fseth",
"topic": "fsdata"
},
{
"data": "VG9kYXkgaXMgbmljZSBkYXk=",
"fileName": "Sanity_FS",
"namespace": "fseth",
"topic": "fsdata"
}];
const response = client.invoke('grpc.fileService.FileService/readFile', **req**);