DLToolkit.Forms.Controls icon indicating copy to clipboard operation
DLToolkit.Forms.Controls copied to clipboard

ImageCropView: "Can not access a closed stream."

Open VanDerSloth opened this issue 6 years ago • 1 comments

Hello,

with XF 3.6, the App throws an exception with the message "Can not access a closed stream." on the line var result = await cropView.GetImageAsJpegAsync();

It doesn't matter what the Source for the CropView element is - I've tried the standard URL as well as a Stream (which is how it should be implemented in the end). Any ideas?

VanDerSloth avatar Nov 08 '19 11:11 VanDerSloth

ImageCropView.Source = ImageSource.FromStream(() =>
                {
                    var stream = file.GetStream();
                    //file.Dispose();
                    return stream;
                });

remove file.Dispose()

lsaudon avatar Apr 16 '20 12:04 lsaudon