How to send array buffer data along with string/json to NodeJS server
问题 I need to send image data (read as array buffer) from client page, along with additional string/json information generated by page, to NodeJS server in one request. I need both parts to be processed in one request as further image processing by server depends on that string/json sent along. What are ways to both send those by client and then parse them by server so it meets those criteria? 回答1: What you are looking for is a multipart request using FormData. FormData can be used as the body in