Copied to clipboard

Flag this post as spam?

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


  • Dieter Luekens 3 posts 73 karma points
    1 week ago
    Dieter Luekens
    0

    mediaImage.SetValue("umbracoFile", stream); ms.Save(mediaImage);

    Unfortunately, saving images with the SetValue("umbracoFile", stream ) does not work? Do anyone have an idea, why not?

  • Proxicode 112 posts 284 karma points
    1 week ago
    Proxicode
    0

    Untested code, but I wonder if you first created the image with something like...

    var mediaImage = ms.CreateMedia(fileName, parentId, "Image");
    mediaImage.SetValue("umbracoFile", stream); 
    ms.Save(mediaImage);
    
Please Sign in or register to post replies

Write your reply to:

Draft