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

  • SEARCH
  • Home
  • 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 7525299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:30:20+00:00 2026-05-30T03:30:20+00:00

So in my C# application I am downloading an XML file as a string,

  • 0

So in my C# application I am downloading an XML file as a string, then doing something with it. Some files are downloaded correctly, but for some files I get gibberish. The weird thing is that when I open those files with my browser (Firefox) I get the data as I should, and not the gibberish.

This is my code to download the data:

public static string Read(string Address)
{
    return new WebClient().DownloadString(Address);
}

And this is an example of a file I get gibberish when downloading: http://thetvdb.com/api/C40F55BF6975A295/series/80379/default/5/16/en.xml

So how can I get the data for these files?

  • 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-05-30T03:30:21+00:00Added an answer on May 30, 2026 at 3:30 am

    I think you are downloading the gzipped version of the xml file. Firefox decompresses that automatically for you.

    Have a look at Uncompressing gzip response from WebClient to do the same with WebClient.

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

Sidebar

Related Questions

For my application I am downloading some data, how could I get a nice
I had an application that was downloading a .CSV file from a password-protected website
In my application I am downloading some images from the web (from my server
I am trying to get a flash application to stop downloading any MP3 when
I added Zying android application to my application as library. Then edited Manifest.xml and
I can't get the primeFaces <p:filedownload work. While I succeed in downloading the file
I'm writing application for downloading CSV file from web and inserting data into table
I'm trying to write an HTML5 offline application but can't seem to get Chrome
I am trying to download xml files from server when my application starts. So
In my application I am downloading pdf file from the net. Is it possible

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.