А как реализовать Dime Attachments если обьем файла слишком большой?
Данный метод вебсервиса раотает для небольших файлов.
[WebMethod]
public void GetFileDime(string filename)
{
FileStream fs = File.Open(filename,FileMode.Open);
DimeAttachment da = new DimeAttachment("PDF", TypeFormat.MediaType, fs);
ResponseSoapContext.Current.Attachments.Add(da);
}
Для больших получаю:
Microsoft.Web.Services2.Dime.DimeFormatException: WSE352: The size of the record uuid:1ad7cd2f-10c9-4f24-a328-62fc3de4e117 exceed its limit.