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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting Image Stream after Saving Returns empty

Thread ID:

Created:

Updated:

Platform:

Replies:

132566 Sep 8,2017 11:28 AM Sep 11,2017 08:46 AM Xamarin.Forms 1
loading
Tags: SfImageEditor
Shane Vickers
Asked On September 8, 2017 11:28 AM

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


Ashwin Kumaravel [Syncfusion]
Replied On September 11, 2017 08:46 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;