Open XingBin111 opened 4 years ago
Looking at how crow handles requests, It seems that everything is sent as std::string
, which means getting a multipart form file will give you the same thing as opening a .png file in notepad. So you'll need to either find a way to convert the multipart form string to binary (which I don't think should be difficult, but is rather slow IMO), or change the source code in http_request.h
and maybe some other files to take the request as binary by default (maybe std::vetor<uint8_t>
).
I'm saying "you need to" because this library is no longer in active development, and while a few developers (including myself) are interested in maintaining it, we may not have the time to modify it as much as we like to.
I want to send a image to server, and use CNN to predict its class, how can I send a image to server by post method?