protobuf.js

In a proto, how can I define a map as a custom option

試著忘記壹切 提交于 2020-04-16 02:43:24
问题 In my proto file, I want to define a map as a custom option, tried a few things but none is working. my metadata proto file: syntax = "proto2"; import "google/protobuf/descriptor.proto"; package com.util; option java_package = "com.util"; message MyMeta { optional bool needValidation = 1; map<string, string> fileMap = 2; } extend google.protobuf.FieldOptions { optional MyMeta meta = 80412; } my proto file syntax = "proto3"; package com.test; import "util/meta.proto"; import "google/protobuf

Posting binary buffer payload using Node-RED

馋奶兔 提交于 2019-12-12 05:39:00
问题 I am trying to send a byte array through POST using Node-RED. I can successfully create the buffer using this module and storing it in msg.payload . However I can't figure out how to add it as a parameter in a http request node. The receiving application requires enclosing quotes. So I use the payload in the following url: localhost:port/path?var=\"{{payload}}\" , but it gives "Error converting http params to args: invalid character '\' looking for beginning of value" If using it in the