Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pierre 1 post 71 karma points
    Aug 28, 2017 @ 11:56
    Pierre
    0

    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 ?

    Thanks for your help!

Please Sign in or register to post replies

Write your reply to:

Draft