raki
raki

Reputation: 2293

Load image in c# windows application

please suggest any method to load am image from a web url which can work faster in a c# windows application other than webRequest class

Upvotes: 0

Views: 1096

Answers (2)

user27414
user27414

Reputation:

If you're concerned about how long it takes to retrieve an image from the web, you could always cache it and update it in the background. It won't help the first time, but will make the app seem faster on subsequent loads.

Upvotes: 1

Joel Coehoorn
Joel Coehoorn

Reputation: 416131

system.net.webclient

Of course, it's not really faster from a performance standpoint. If you're loading the image from the web, nothing will save you from having to send an http request to download it (you might try caching the image locally so at least you only need to download it once).

But it is faster in the sense of development time.

Upvotes: 5

Related Questions