Node : how to convert from varbinary to image of SQL Server datatype
问题 I'm have a SQL Server database with images of type varbinary . I need to convert the varbinary and return the image to a web page. Help would be appreciated. I found this and it was very helpful, but I need it in reverse. Node.js How to convert to image from varbinary of MS Sql server datatype Something like ... var image = new Buffer(rs.recordset[0].Image).toString('base64'); res.type('image/jpeg; charset=utf-8'); res.status(200).end(image); <ng-template ngbSlide *ngFor="let image of images"