- Home /
solution solved
How to Save PNG in android...?
Hello Everyone...
This Is My Code Code public void Start() { StartCoroutine(DownloadProcces()); } IEnumerator DownloadProcces() { string URL = "SomeURL"; <-----------The Normal URL of Some Photo string PATH = "???" <----My Question Is HERE using (WWW www = new WWW(URL)) { yield return www; File.WriteAllBytes(PATH + "/PIC.png", www.texture.EncodeToPNG()); }
1) It's Working Great On Windows When I Put The Right Path
2) It's Working When I Put Application.persistentDataPath in Android / Windows
3) Not Working When I Put "/storage/emulated/0/" For Saving It to another path in android
I Want To Save The Downloaded Picture in some Custom Path or directory...
Answer by SunnyChow · Dec 12, 2018 at 02:17 AM
i think you need to set "Player Settings/Android/Write Permission" to External
Follow this Question
Related Questions
Android file path? 0 Answers
How to write files to the streaming asset folder in Android at runtime 1 Answer
Save a reachable file on the android device 1 Answer
Difference between Application.persistantDataPath Vs Application.dataPath 2 Answers
Fatal Exception when loading multiple image files on Android from persistent data path 0 Answers