A RESTful API, with a post call which is taking a file in octet stream form as an input.
On Thu, Dec 13, 2018, 6:25 PM roger peppe <rogpe...@gmail.com wrote: > What kind of API? FWIW, an octet stream is conventionally represented as > an io.Reader in Go, and you can convert to a byte array using > ioutil.ReadAll. > > See https://golang.org/pkg/io#Reader and > https://golang.org/pkg/io/ioutil#ReadAll > > > On Thu, 13 Dec 2018 at 12:01, akshita babel <akshitababel.1...@gmail.com> > wrote: > >> Hey, can anyone guide me on how to take octet stream as input in API >> and/or how to convert octet stream to byte array using golang >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.