Native node.js captures the data stream of the picture. If you get the data, the picture can't be saved.

Native node.js captures the data stream of the picture. If you get the data, can the picture be saved?
look at the data object and do Filter, but still can"t get the data
the related code is as follows
  https://codeshelper.com/q/10.

ask for advice

Apr.09,2021

Thank you for inviting me. I don't understand the above code. Wait for God to answer, you can change your way of thinking. You can consider using upload components, such as multer, formidable and other libraries, which are very mature libraries. I have an article for reference: uses Node to handle file uploads .


is invited to answer.
Native node is more troublesome to get files
if there is a href= "https://codeshelper.com/q/1010000009945178"> similar problem on this site , I won't make a fool of myself (actually I won't)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48411-271d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48411-271d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?