picture display ready
This commit is contained in:
@@ -130,21 +130,6 @@ Api.addRoute('picture/:id', {
|
||||
'time': new Date()
|
||||
}
|
||||
});
|
||||
},
|
||||
get: function() {
|
||||
var id = this.urlParams.id;
|
||||
var res = this.response;
|
||||
var picture_src = "/images/noImage.png";
|
||||
var pictureEntry = Picture.findOne({
|
||||
controller_id: id
|
||||
});
|
||||
if (pictureEntry) {
|
||||
var imageData = pictureEntry.picture_base64;
|
||||
picture_src = "data:image/jpeg;charset=utf-8;base64," + imageData;
|
||||
}
|
||||
return {
|
||||
picture: picture_src
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user