I want to download an image from an url and then save it, as image file, in the isolate storage. I already save there some string values, but i don't know how to save an image file. Thanks!
How to save image to Isolate Storage
1k Views Asked by user1005633 At
4
There are 4 best solutions below
1

You can save it through web client as:
WebClient webClient = new WebClient();
webClient.DownloadFile(ImageFileUrl, localFileName);
0

Try this
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
string filePath = Path.Combine(path, "filename.jpg");
using (IsolatedStorageFileStream fStream = new IsolatedStorageFileStream(filePath, FileMode.Create, isoFile))
{
yourFileStream.CopyTo(fStream);
//OR
fStream.Write(yourFileStream.GetBytes(), 0, yourFileStream.GetBytes().Length);
}
You can do it also through binary writer as ;