How to apply downloaded textures on Android/iOS

For a gallery I would like to update my Android app with the latest images.

The Resources.Load only loads from the from the Resources folder in Application.dataPath. The only way to download and store images on Android is by using Application.persistentDataPath.

How can I apply downloaded textures on Android? I haven’t tried on iOS but my guess is it would be the same problem…

Ok I solved it I believe.

It’s possible to load textures from the persistentDataPath by using WWW just remember to replace the spaces in the file path like below.

filename = "file://" + filename.Replace(" ", "%20");  
WWW wwwData = new WWW ( filename );
while ( wwwData.isDone == false )
{
}