Glenn Sanchez

Glenn Sanchez

  • NA
  • 83
  • 34.5k

Saving System.Net.Attachment into Database

Mar 27 2012 1:17 AM
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)