Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:05:30+00:00 2026-06-02T01:05:30+00:00

I have a fairly complex scenario that I try to port to Windows 8

  • 0

I have a fairly complex scenario that I try to port to Windows 8 from Windows Phone 7.

I need to

  1. Download s Zip file from the internet
  2. Unzip it to the isolated storage
  3. Read the unzipped xml files and images

Problems

  1. In Windows Phone 7 I use WebClient that is no longer available in Windows 8. I tried HttpClientHandler but I am only able to download the ZIP file as a string and I do no know how to save it to isolated storage.

  2. I found ZipArchive class but it takes a IO.Stream and I am not really sure how to use it (if I had the file save somewehre – point 1)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:05:32+00:00Added an answer on June 2, 2026 at 1:05 am

    I’m just starting out with the new API’s as well (so this might be off a bit), but based on the documentation:

    • HttpClient (and it’s default handler HttpClientHandler) return a Task<HttpResponseMessage> from SendAsync.
    • The HttpResponseMessage has a property, Content which is of type HttpContent.
    • HttpContent in turn has a method, ReadAsStreamAsync, which returns Task<Stream> which you should be able to use (albeit indirectly) to pass to ZipArchive.

    Or you can just use the HttpClient.GetStreamAsync method to get the stream (much simpler):

    HttpClient client = new HttpClient();
    Stream stream = await client.GetStreamAsync(uri);
    

    If that doesn’t work then you could also just wrap the string you get now in a MemoryStream and pass it to ZipArchive but that sounds kind of unsafe because of possible encoding problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly complex scenario and I need to ensure items I have
I have some fairly complex requirements for a SOLR search that I need to
I have a fairly complex sql that returns 2158 rows' id from a table
I have a fairly complex SQL query that pulls different types of products from
I have a fairly complex multi threaded application (server) that from time to time
I have a fairly complex set of C++ classes that are re-written from Java.
I have a fairly complex view that has multiple forms, lots of validations on
I have a web application I've developed that has a fairly complex save routine.
I have a web page that I use to update a fairly complex data
I have a fairly complex business application written in ASP.NET that is deployed on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.