Copied to clipboard

Flag this post as spam?

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


  • Philip Hayton 98 posts 435 karma points
    Nov 07, 2022 @ 16:06
    Philip Hayton
    0

    How to read a media file to stream in Umbraco Cloud

    Hi guys,

    I need to read the contents of media files via a stream. The code I have works locally but it keeps throwing errors when I run it on Cloud.

    I presume there is some environment-agnostic service that I can inject and consume, but I can't seem to find any documentation anywhere.

    Is anybody able to shed any light?

  • Philip Hayton 98 posts 435 karma points
    Nov 07, 2022 @ 17:57
    Philip Hayton
    100

    Solved it.

    There's a MediaManager class for this exact purpose.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies