The spec appears to be silent on how binary data should be handled.
I have a few situations here where I am handling image files, and converting them to/from base64 to contain them in the
data property feels heavy-handed. I am also concerned about the weight of larger images on both the client and the server which dealing with these especially large JSON payloads.
Other issues are that it…
- Wouldn’t scale to even larger binary types
- Is hard to deal with from a browser, where a multipart file upload makes more sense
- It isn’t possible to stream down the binary content in regular HTTP style
Is this a place where you simply roll your own implementation?