How do I convert readable image stream into base64 without saving locally
问题 I want to convert an image in azure to base64. How can I achieve this using azure-storage package? this.blobService.getBlobProperties( 'container', path, (err, properties, status)=> { if (err) { res.send(502, "Error fetching file: %s", err.message); } else if (!status.isSuccessful) { res.send(502, "The file %s does not exist", fileName) } else { res.header('Content-Type', properties['contentType']); this.blobService.createReadStream('container', path,(error,response)=>{ }).pipe(res); } });