Hej,
I have a table in database that holds compressed large size file.
when I try to read that file via a Ef6
. It throws an out of memory exception.
Any help would be appreciated.
My code is like
var payload = repositoryContext.Set<DocumentStore>()
.Include(document => document.DocumentStorePayloadData)
.Single(document => document.Id ==
documentStoreId).DocumentStorePayloadData;``
If you are running this in Visual Studio with debug, I think it only runs as 32 bit. If you have IIS running in 64-bit on your machine, see if you can run via that instead of via the debugger. Otherwise, you only have 2 gb total ram which could cause problems trying to load a 500 meg file.