ms = new MemoryStream(item.Image); code example Example: ms = new MemoryStream(item.Image); ms = new MemoryStream(item.Image);