Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get('/image', (req, res) => {
- ServerAPI.queryViewImage(options).then(image => {
- res.render('image', { image: Buffer.from(image, 'binary').toString('base64') });
- });
- });
- { image: Buffer.from(image, 'binary').toString('base64') }
Add Comment
Please, Sign In to add comment