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); }

0

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); }

By Beginner Mae Hahn at Mar 03 2021


Related code examples


Code examples by languages