Saturday 28 March 2020

retrieve and decode the blob content from database

Hi I am developing a node js API that saves the users records including images. I store the image in database using Buffer.form( ) blob. Now I want to retrieve these images and send back as a response of http request.Before insert to database i convert it to buffer asconst bitmap = fs.readFileSync(file);const buf = new Buffer.from(bitmap);​please guide me to do this.View Poll

Submitted March 28, 2020 at 11:44AM by hammadali598393

No comments:

Post a Comment