public void LoadAllImages(string _id)
{
StorageReference fileRef = Storage.RootReference.Child(AppSettings.RootUserStorageKey).Child(_id).Child(AppSettings.UserFeedImage);
const long maxAllowedSize = 1 * 1024 * 1024;
fileRef.GetBytesAsync(maxAllowedSize).ContinueWith((Task<byte[]> task) => {
if (task.IsFaulted || task.IsCanceled) {
Debug.Log(task.Exception.ToString());
} else {
byte[] fileContents = task.Result;
foreach(char _name in fileContents.ToString())
{
texture.Add(_name);
}
Debug.Log("Finished downloading!");
}
});
}