Tag Info

Hot answers tagged

1

Sandbox solution runs on its own process. Hence the HttpContext you are using will not work. Write file to response problem


1

Use context.Load(listitems, items => items.Include(item => item["MyUser"]));


1

You can use this code: byte[] contents = ...//your file's byte[] SPAttachmentCollection attachments = item.Attachments; attachments.Add("AttachmentName.txt", contents); Reference



Only top voted, non community-wiki answers of a minimum length are eligible