string File = project.Variables["File"].Value;
string data = "";
data += "--8d769bc78125cd4\n";
data += string.Format("Content-Disposition: form-data; name=\"file\"; filename=\"{0}\"\n", File);
data += "language=rus\n";
data += "isOverlayRequired=true\n";
data += "Content-Type: application/octet-stream\n";
data += File;
//var data = string.Format(@"--8d769bc78125cd4"+"\n"+@"Content-Disposition: form-data; name=""document""; filename=""3.png"""+"\n"+@"Content-Type: application/octet-stream"+"\n" + File, File);
string resRequest = ZennoPoster.HttpPost(
"https://api.ocr.space/parse/image",
data,
"multipart/form-data",
"",
"UTF-8",
ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.HeaderAndBody,
30000,
"",
"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0",
true,
5,
new[] {"apikey:dea713c87c88957"}
);
return resRequest;