How to save image as umbraco media programaticaly?
Hi,
I'm trying to save a image (profile picture) for registered member but when I send the image (cropped information) as base64 text to the service. Image and folder is getting created, but the content of the image is not getting updated through mediaservice.
Even the official example to use setValue for stream is not working in this version of Umbraco.
How to save image as umbraco media programaticaly?
Hi,
I'm trying to save a image (profile picture) for registered member but when I send the image (cropped information) as base64 text to the service. Image and folder is getting created, but the content of the image is not getting updated through mediaservice.
Even the official example to use setValue for stream is not working in this version of Umbraco.
Current output:
Code used:
Thanks in advance.
Hi
I created a GitHub repo to show examples how to do all of this.
You can register, login, logout, edit profile with image, gallery images, dropdown, checkbox list, radio list properties etc.
Here is a link to the media upload service I created for it https://github.com/prjseal/Umbraco-9-Membership/blob/master/Umbraco9Membership/Services/MediaUploadService.cs
Paul
Thanks Paul, I will implement and verify it.
How was that solution for you Arul? Did it work?
Thanks Paul, this worked as expected.
is working on a reply...