Ho il seguente codice:SharePoint: come aggiungere un allegato a una voce di elenco in modo programmatico?
SPList list = web.Lists[this.ListName];
SPListItem item = list.Items.Add();
ora quello che voglio fare è:
FileInfo[] attachments = attachmentDirectory.GetFiles();
foreach (FileInfo attachment in attachments)
{
// Add the attachment from file system to the list item...
}
Come faccio a convertire un file normale per un array di byte?
Grazie entrambi questi metodi sono troppo funky. Ho trovato un altro modo per farlo –