.net 上传文件到go fastdfs - sjqzhang/go-fastdfs GitHub Wiki
使用的restsharp
public static IRestResponse Base64toTFS(string reqNo, Lic_FileEntity file)
{
var contents = Convert.FromBase64String(file.data.data);
var client = new RestClient("http://localhost:8080/upload");
var request = new RestRequest(Method.POST);
request.AddFileBytes("file", contents, file.data.name);
request.AddParameter("path",reqNo);
request.AddParameter("output", "json");
request.AddParameter("scene", "image");
IRestResponse response = client.Execute(request);
return response;
}