Let's say, below is the multipart/form-data I want to create:
POST /ISAPI/Intelligent/FDLib/FaceDataRecord?format=json
Accept: text/html, application/xhtml+xml,
Accept-Language: us-EN
Content-Disposition: form-data; name="FaceDataRecord";
Content-Type: application/json
Content-Length: 9907
{
"name": "Eric",
"gender": "male",
"bornTime": "2004-05-03",
"city": “130100”
}
-----------------------------7e13971310878
Content-Disposition: form-data; name="FaceImage";
Content-Type: image/jpeg
Content-Length: 9907
......JFIF.....`.`.....C........... .
..
................. $.' ",#..(7),01444.'9=82<.342...C. ....
-----------------------------7e13971310878--
How can I create this form-data and then Serialize it before I pass/copy it to IntPtr?
Any help would be massively appreciated.