Umbraco 11 - Create media from Stream

294 Views Asked by At

I'm developing a package for the new Umbraco 11 version, In there I need to create media and get its URL using byte stream. Seems it's a bit different from the older version such as version 7/8. Can anybody suggest me way of doing it or clear documentation or an article that I can get some support?

2

There are 2 best solutions below

4
On

I think you're looking for this example, it's from the official Umbraco 9+ docs: https://docs.umbraco.com/umbraco-cms/reference/management/services/mediaservice#creating-a-new-media-item-from-a-stream

0
On

I got the support from Umbraco forum for this issue and now it's solved. Please follow this URL https://our.umbraco.com/forum/using-umbraco-and-getting-started/110866-umbraco-11-create-media-from-stream