Ben şu kod:SharePoint: Bir liste öğesine ek olarak nasıl ek eklenir?
SPList list = web.Lists[this.ListName];
SPListItem item = list.Items.Add();
şimdi ne yapmak istiyorum geçerli:
FileInfo[] attachments = attachmentDirectory.GetFiles();
foreach (FileInfo attachment in attachments)
{
// Add the attachment from file system to the list item...
}
Nasıl bir bayt dizisi normal bir dosya dönüştürebilirim?
Teşekkür hem bu yöntemler çok korkak olan yardımcı olabilir. Bunu yapmanın başka bir yolunu buldum –