'How to get an image from a binary type database using entity framework

I'm trying to get an image from the database, saved in a column with the type varbinary(max), using entity framework.

Screenshots Screenshot1 Screenshot2 Screenshot3

I don't understand how to convert the selected object so that the query works correctly I hope it's not a huge code that I can parse, well, or just hints. maybe the request should be written in a different way. thank you in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source