UmbracoFileSystemProviders.Azure large file uploading throws OutOfMemoryException
Hi,
I'm using UmbracoFileSystemProviders.Azure (v0.5.8-beta) to use my Azure Blob Storage as media storage. I encounter an OutOfMemoryException when I try to upload a large file (for example 2GB).
After investigating a little bit, it seems that when the media is uploaded, the media's file size property is set through the property GetSize of the FileSystemExtensions class which calls the Azure file system provider method OpenFile of the AzureFileSystem class. This one opens the file and load it into a MemoryStream which loads the entire content in my memory and throws the out of memory exception.
Has anybody already encountered this problem ? Do I misused this plugin or is there a workaround other than scaling up the RAM of my server ?
UmbracoFileSystemProviders.Azure large file uploading throws OutOfMemoryException
Hi,
I'm using
UmbracoFileSystemProviders.Azure
(v0.5.8-beta) to use my Azure Blob Storage as media storage. I encounter anOutOfMemoryException
when I try to upload a large file (for example 2GB).After investigating a little bit, it seems that when the media is uploaded, the media's file size property is set through the property
GetSize
of theFileSystemExtensions
class which calls the Azure file system provider methodOpenFile
of theAzureFileSystem
class. This one opens the file and load it into aMemoryStream
which loads the entire content in my memory and throws the out of memory exception.Has anybody already encountered this problem ? Do I misused this plugin or is there a workaround other than scaling up the RAM of my server ?
Thanks for your help!
is working on a reply...