Reading and Displaying images from mongoDB using GridFs

后端 未结 1 1165
攒了一身酷
攒了一身酷 2021-01-06 19:52

I have been able to successfully upload images to mongoDB using GridFs. Below are images from my database:

fs.files:

1条回答
  •  一向
    一向 (楼主)
    2021-01-06 20:02

    It should really be

    writeStream.write(part.data);
    

    not

    writeStream.write(part.name);
    

    0 讨论(0)
提交回复
热议问题