working code here.
https://gist.github.com/3793279
#
# blob : Object from MongoDB
#
# blob.body: Buffer
# blob.size: length of buffer, substitute for blob.body.length
# blob.type: MIME (Eg. audio/x-wav)
#
# req : Object from http
# res : Object from http
# _ : Object from underscore
#
if blob
So did you guys made it work?
Could you share the final code? I am trying something similar here.
Thx!
On Tuesday, December 7, 2010 9:42:19 AM UTC-8, quantum wrote:
>
> Seems that you are incorrectly computing the content-length:
>
> var chunksize = (end-start)+1;
>
> If start is 0 and end is 1,