ms = new memorystream(item.image);

0

ms = new memorystream(item.image);

By Beginner Mae Hahn at Mar 03 2021

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