Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try this one, Maybe helpfull to You,</p> <pre><code>private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { HttpWebRequest reqest1 = (HttpWebRequest)WebRequest.Create(url); reqest1.BeginGetResponse(DownloadImageCallback, reqest1); Thread.Sleep(1000); } void DownloadImageCallback(IAsyncResult result) { HttpWebRequest req1 = (HttpWebRequest)result.AsyncState; HttpWebResponse responce = (HttpWebResponse)req1.EndGetResponse(result); Stream s = responce.GetResponseStream(); Deployment.Current.Dispatcher.BeginInvoke(() =&gt; { string directory = "Images"; if (!myStore.DirectoryExists(directory)) { myStore.CreateDirectory(directory); using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { using (var isoFileStream = myIsolatedStorage.CreateFile(directory + "//yourfilename.jpg")) { var wb = new WriteableBitmap(bitimage); var width = wb.PixelWidth; var height = wb.PixelHeight; Extensions.SaveJpeg(wb, isoFileStream, width, height, 0, 100); } } } else { using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { if (myIsolatedStorage.FileExists(directory + "//yourfilename.jpg")) { myIsolatedStorage.DeleteFile(directory + "//yourfilename.jpg"); } using (var isoFileStream = myIsolatedStorage.CreateFile(directory + "//yourfilename.jpg")) { var wb = new WriteableBitmap(bitimage); var width = wb.PixelWidth; var height = wb.PixelHeight; Extensions.SaveJpeg(wb, isoFileStream, width, height, 0, 100); } } } }); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload