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 7701809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:04:57+00:00 2026-05-31T23:04:57+00:00

I almost dare to ask, but how can i get the response data of

  • 0

I almost dare to ask, but how can i get the response data of a URL?
I just can’t remember anymore.

My scenario: I’m using the twitter API to get the profile picture of an user. That API URL returns the JPEG location.
So if I actually write this HTML in my views:

<img src="https://api.twitter.com/1/users/profile_image?screen_name=twitterapi&size=bigger"/> 

The browser auto uses the response JPEG for the SRC property. Like this:

Now is my question very simple: how can I get that .jpg location in C# to put in my database?

  • 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-31T23:04:58+00:00Added an answer on May 31, 2026 at 11:04 pm

    I’m not exactly sure what you are asking.

    I think you can use WebClient.DownloadData in c# to call that url. Once you download the file, you can then place it in the database.

    byte[] response = new System.Net.WebClient().DownloadData(url);
    

    Download a file over HTTP into a byte array in C#?

    EDIT: THIS IS WORKING FOR ME

    WebRequest request = WebRequest.Create("https://api.twitter.com/1/users/profile_image?screen_name=twitterapi&size=bigger");
    WebResponse response = request.GetResponse();
    Console.WriteLine(response.ResponseUri);
    
    Console.Read( );
    

    from A way to figure out redirection URL

    EDIT: THIS IS ANOTHER METHOD I THINK…using show.json from Read the absolute redirected SRC attribute URL for an image

    http://api.twitter.com/1/users/show.json?screen_name=twitterapi

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

Sidebar

Related Questions

I almost didn't dare to ask this question because it looks trivial but after
I almost have the thing working but I can't get past a parsing issue.
Almost all of the applications I write at work get their data from a
Almost certainly a stupid question but I can't find the answer anywhere. In the
Almost all the .net assemblies can be de-compiled using Reflection .Which means that all
Almost every Java book I read talks about using the interface as a way
Almost every new Java-web-project is using a modern MVC-framework such as Struts or Spring
Almost every documentation I am seeing shows Soaplib servers to be deployed using Cherry
Almost on every interview I'm asked some questions implies data structure implementation. Is there
Almost everywhere in the iPhone, you can type text and the OS will recognize

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.