- Home /
Open saved image on android
Hello, i save an image with code below. OpenURL working great on pc, but not working on android, can you help ?
string randomName = DateTime.Now.ToString ("yyyy-MM-dd-HHmmss") + ".png";
string fileName = Application.persistentDataPath + "/" + randomName;
File.WriteAllBytes (fileName, Game.image.texture.EncodeToPNG ());
Application.OpenURL (fileName);
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612140346im_/https://answers.unity.com/themes/thub/images/avi.jpg)