I used the following code and I needed the MemoryStream to be used as email attachment:
string filename=@"C:\images\myimage.img"
MemoryStream result = new MemoryStream();
MemoryStream source = new MemoryStream(File.ReadAllBytes(filename));
source.WriteTo(result);