Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
After editing an image, I get the image data from the editor (which I was previously doing with
GetImageDataUrlAsync and converting that to base64 string and then to a byte[]) so I can save it.
After updating from to 23.2.7 to 24.1.46, GetImageDataUrlAsync throws a null object reference. I tried
GetImageDataAsync instead but that throws the same error:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.ImageEditor.SfImageEditor.GetImageDataAsync()
at PyramedAnywhere.UI.Pages.ImageIndexing.ImageViewer.ToolbarItemClicked(ClickEventArgs args) in D:\dev\P5\src\PyramedAnywhere.UI\Pages\ImageIndexing\ImageViewer.razor:line 232
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.ImageEditor.SfImageEditor.ToolbarClicked(ClickEventArgs args)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.
at Syncfusion.Blazor.Navigations.SfToolbar.TriggerClickEvent(MouseEventArgs e, Nullable`1 trgParentDataIndex, ItemModel clickedItem)
at Syncfusion.Blazor.Navigations.Internal.ToolbarContent.OnItemClick(MouseEventArgs e)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)