On Sep 30, 2014, at 5:20 PM, Ingwie Phoenix <[email protected]> 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
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/6A347DF2-7AC6-42D1-A341-C36DC61604B5%40nbtsc.org.
For more options, visit https://groups.google.com/d/optout.