- Home /
copy downloaded png to Documents folder?
How would I copy a png from a server to the documents folder. would I do something like this
download = new WWW (url);
yield download;
pngbytes = download.bytes;
System.IO.File.WriteAllBytes(Application.dataPath + "/Documents/mypng.png", pngbytes);
If the png is in an assetBundle how would I do it?
download = new WWW (url);
yield download;
currentAssetBundle = download.assetBundle;
mypng=currentAssetBundle.Load("mypng");
?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613080542im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
copy png from assetbundle into another folder 0 Answers
How to download an asset bundle to local hard drive? 1 Answer
Alternative to BuildStreamedSceneAssetBundle ? 0 Answers
Why download AssetBundle take so long? 0 Answers
Downloading files with Git 0 Answers