我正在尝试将一些二进制数据从上传的图像更改为base64,这样我就可以使用它来显示图像。但泰莫司给了我这个错误:我不明白,当我发帖的时候,我也使用了.on事件,它运行得很好。此外,我想知道我是否正确地改变了数据。如何保存上传的图像(POST)// Post to profile page var busboy = new Busbo
我的应用使用node 0.10.1,express 3.1.1,mongoose 3.6.4,mongo 2.4.1和gridfs-stream 0.4.0。我已经使用共享连接设置了mongoose和gridfs-stream,如下所示://Added this in editto show setup of mongoose and gridfs-stream
var mongoose = require("m
66)
at new GridReadStream (/Users/eric.miles/Projects/Personal/mean/emcontacts/node_modules/gridfs-streamat Grid.createReadStream (/Users/eric.miles/Projects/Personal/mean/emcontacts/node_modules/gri