Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, September 7, 2017 7:03 PM
I am trying to save an image in a folder of the Android device. The code I am using is as follows
var newFolder = AndroidEnvironment.GetExternalStoragePublicDirectory(AndroidEnvironment.DirectoryPictures).AbsolutePath + "/NewFolder";
Directory.CreateDirectory(cameraFolder);
byte[] reducedImage = ResizeImageAndroid(imageData, 50, 50, 70);
Image image = new Image {Source = ImageSource.FromStream(() => new MemoryStream(reducedImage))};
I want to save reduced image as jpg file in newFolder. I am not sure if I am in right direction, it would be great if I save reducedImage or image as a jpg file in newFolder directory. I am using Xamarin and this code is in Android project.
All replies (1)
Friday, September 8, 2017 3:00 PM âś…Answered
This Worked :-)