Then the code for the backend controller could be something like:
public ActionResult ImageSave(string contentType, string base64, string fileName)
var fileContents = Convert.FromBase64String(base64);
// ...custom logic for saving the string to the database...return File(fileContents, contentType, fileName);
The image data is sent as a base64 encoded string to the action. You can access it through the string base64 parameter and save it based on your requirements.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.