I don't know the details of your file upload, but usually, uploading by 
chunks is faster and uses less memory.
 
On Tuesday, February 28, 2012 4:41:54 PM UTC-7, billywhizz wrote:
>
> I'm struggling to understand why the following works when 
> concatenating two buffers into strings: 
>
> var a = new Buffer("0123456789"); 
> var b = new Buffer("0123456789"); 
> var s = a + b; 
> console.log(s); 
>
> is the addition operator overloaded in some way to coerce a buffer 
> into a string when used with two buffers? if so, does it always do a 
> conversion to utf8 or ascii? is this a bad way of doing things 
> generally? 
>
> thanks for any info.


On Tuesday, February 28, 2012 4:41:54 PM UTC-7, billywhizz wrote:
>
> I'm struggling to understand why the following works when 
> concatenating two buffers into strings: 
>
> var a = new Buffer("0123456789"); 
> var b = new Buffer("0123456789"); 
> var s = a + b; 
> console.log(s); 
>
> is the addition operator overloaded in some way to coerce a buffer 
> into a string when used with two buffers? if so, does it always do a 
> conversion to utf8 or ascii? is this a bad way of doing things 
> generally? 
>
> thanks for any info.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to