2
Reply

Saving System.Net.Attachment into Database

Glenn Sanchez

Glenn Sanchez

Mar 27 2012 1:17 AM
2.8k
Hi All,

Is there a way of saving a System.Net.Attachment directly into a database field without writing to disk?


I am using LINQ and this is what I have for now:

AttachmentDetail attd = new AttachmentDetail();
attd.HeaderID=atth.ID;
attd.FileName = att.ContentDisposition.FileName;

attd.Object = ? //Something to put here...


Thanks and Regards

Answers (2)
Next Recommended Forum