On Sun, Jul 1, 2012 at 1:05 PM, Kyle Sluder <k...@ksluder.com> wrote:

> On Sun, Jul 1, 2012, at 11:23 PM, Alexander Hartner wrote:
>> I am looking at available option to send an NSImage to a webserver.

> If you're in control over both the client and server, I'd suggest
> avoiding sending the image data over JSON. You're going to seriously
> inflate the file size by base64-encoding it, and for what purpose?
>
> You can be REST without using JSON. It would be much more efficient if
> you could just issue a PUT at a certain URL to upload the image data.

I completely agree - don't encode it unless you're sure you really
need that, such as if your webserver were a VAX and didn't understand
8 bit character encodings.  You're going to balloon the resident
memory size of the app, possibly dramatically if you're talking
arbitrary images.

--Jim
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to