On Sep 30, 2014, at 5:20 PM, Ingwie Phoenix <
ingwi...@googlemail.com> wrote:
> I see, thats one solution - and you just reminded me on this hTTP header i keep forgetting too! Thanks for that by the way.
>
> I have to sen dmultiple files and retain some metadata (title, description). Is there some kind of JSON that also lets me work with binary data - in both languages that is?
Not easily: At that point you're into binary serialization formats like bson.
Which really aren't that different from, say, a tar file with metadata in an adjacent file.
Maybe you want attachments as binary, and json that references them:
{
"files": [
{ "name": "foo.jpg", "title": "My File" }
]
}
and then just bundle that all up together.
This is ultimately how npm packages, ruby gems and debian packages work. I think it's the same kind of problem.
Aria