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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:18:25+00:00 2026-06-09T16:18:25+00:00

Background: I am writing a RouteHandler as part of my MVC3 solution. It purpose

  • 0

Background:

I am writing a RouteHandler as part of my MVC3 solution. It purpose is to get images and files from my cloud storage and deliver them to the browser while masking the cloud storage urls.

So every thing from the “media” sub-domain gets routed to my MediaRouteHandler where I have implemented the logic to get the images.

I am struggling to get an asynchronous implementation for the HttpWebRequest. At best it behaves erratically. Sometimes bringing down the images correctly sometimes not.

Question:

So, my question is.

Does a standard browser load images synchronously or asynchronously? Or am I trying to do something that even the browsers don’t generally do (and just wasting my time).

i.e. If the default way a browser gets an image is from a synchronous thread, then I am happy just doing that.

Is that the case?

Thanks.

A bit of testing:

This is the result of my synchronous route handler. You will see that the image requests overlap, and by using fiddler to mimic modem download speeds, I can see them coming down at the same time at different speeds.

Synchronous Download Speeds

  • 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-09T16:18:26+00:00Added an answer on June 9, 2026 at 4:18 pm

    If images are requested one-by-one then actually each MediaRouteHandler runs in its own thread. You can therefore simply perform a synchronous HttpWebRequest for each image as nothing is blocked (client browser needs full image file anyway).

    Please note that asynchronous calls can be worth considering due to performance benefits. If image data is long – you can start pushing data to client browser although not whole data was yet downloaded from your cloud storage.

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

Sidebar

Related Questions

Background: I'm writing a data provider that SSAS will use to get data from
Background: writing an automated release script to export changed files between versions from SVN
Background I'm writing an web application so I can control an Ubuntu Server from
(I'm Coming from a C# background writing iPhone apps with MonoTouch) I have a
I am writing an application that runs in the background from startup to shutdown,
Background I'm writing an part of my app that has no UI. It sits
BACKGROUND I am writing a screen capture application My code is based derived from
I've come from iPhone background and am writing an android app. I've got a
Background: I'm writing a script to collect some files in to a zip file.
I'm from a Windows programming background when writing tools, but have been programming using

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.