The following code retrieves all bytes data at once.
I'm wondering how to access byte data stored in chunk using entity framework. Since files are so big (around 50MB), I want to send it to user by chunks as soon as I get partial bytes from database.
using (Entities context = new Entities(EntitiesConnectionString))
{
byte[] data = context.MyFileTable
.Where(item => item.FileId == 1)
.Select(item => FileData)
.FirstOrDefault();
}
Thanks in advance!