Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there another way to create Media-Items except handing a FileStream to the MediaService?
FileStream tmpFile = System.IO.File.Open(path, FileMode.Open); IMedia m = Services.MediaService.CreateMedia("Name", -1, "Image"); m.SetValue("umbracoFile", "Name", tmpFile); Services.MediaService.Save(m);
I already have the file and it seems like a lot of trouble and terribly ineffective to copy it twice. I would prefere to put it manually in the media-folder.
Hi NDDT,
Can you describe where do you get file ? All stages of media creation ?
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Create Media
Is there another way to create Media-Items except handing a FileStream to the MediaService?
I already have the file and it seems like a lot of trouble and terribly ineffective to copy it twice. I would prefere to put it manually in the media-folder.
Hi NDDT,
Can you describe where do you get file ? All stages of media creation ?
Thanks
is working on a reply...