On Apr 5, 7:57 pm, Mehdi Avdi <[email protected]> wrote:
> I've tried toString("binary") as well. But it seems node doesnt decode all
> of the content. It seems it only decodes jpg header info and leaves the
> rest.

Did you try not using toString() at all?:

fs.writeFile("arghhhh.jpg", new Buffer(request.body.photo, "base64"),
function(err) {});

-- 
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