ms = new memorystream(item.image);
By Mae Hahn at Mar 03 2021
public filestreamresult renderimage(int id) { memorystream ms = null ; var item = db.products.firstordefault(p => p.productid == id); if (item != null) { ms = new memorystream(item.image); } return new filestreamresult(ms, item.imagetype); }