is there a way to pass images from one page to another, for example if i choose a group of images in a layout in one page and want all to show in another page.
var stream = file.GetStream(); // your file stream
var bytes = new byte[stream.Length]; // create byte code
string base64 = System.Convert.ToBase64String(bytes); // convert the bytes to base64 string
and pass your base64 string to another page (if you have more than one the store it to a list)
Another page where you want to pass:
just convert the base 64 string to Stream file.
byte Base64Stream = Convert.FromBase64String(base64 );
showImage.Source =ImageSource.FromStream(()=>new MemoryStream(Base64Stream));
Just pass that object to next page .
In new page just create the object reference.
How can I get the stream from Image's Source like this?
viewModel.Image = ImageSource.FromStream(() =>
var stream = IMAGE.SOURCE.GETSTREAM();
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies