1、解释说明:
WWWFORM.AddBinaryData(string fieldName,byte [] contents,string fileName = null,string mimeType = null);
包含四个参数重载:
string fieldName:字段名(也就是表单元素的name,类似于html表单的) ;
byte [] contents:二进制数据(文件转换的二进制数据);
string fileName = null:文件名(即交托服务器的文件名称,包含文件后缀,如果为空,服务器会默认文件为dat类型);
如果mimeType没有给出,并且数据的前8个字节与PNG格式标题匹配,则数据以“ image/png”mimetype 发送。否则它将以“ application/octet-stream”mimetype 发送。
实际应用中给定前三个参数就足够了;
方法一: //public Image imgae; string url = “http://192.168.3.122”; //string CreateURL = “http://192.168.3.122//CreatFolder.php”; //string DelURL = “http://192.168.3.122//DelFolder.php”;
string PicturePath = @"file://D:\EmergencySinglePlayerEditor