We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting Image Stream after Saving Returns empty

Hi I'm having a bit of trouble saving an edited image,

Saved Pressing the save button and adding an ImageSaving handler

I am trying to process the Image Stream and return the byte[] to a previous page,
However when I access the stream it is empty
I have included snippets of code below and advice or suggestions would be greatly appreciated 

 SfImageEditor editor;
 public SfImageEditorPage()
        {
            editor = new SfImageEditor();
            Title = "Edit Image";                                 
            editor.ImageSaving += Editor_ImageSaving;
            Content = editor;                               
        }
  private void Editor_ImageSaving(object sender, ImageSavingEventArgs args)
        {
            MemoryStream mStream = new MemoryStream();
            args.Stream.CopyTo(mStream);
            byte[] data = mStream.ToArray(); 

        }


Regards,
Shane


1 Reply

AK Ashwin Kumaravel Syncfusion Team September 11, 2017 12:46 PM UTC

Hi Shane,

Thanks for using Syncfusion products,

We could reproduce the reported issue “Getting Image Stream after Saving Returns empty” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/  

Regards,
Ashwin


Loader.
Live Chat Icon For mobile
Up arrow icon