Loading an image through the bitmapsource block of the rest of the API calls

I have a weird problem with my API calls.

I am writing a WPF application using RestSharp . All my API calls use RestSharp.

I have a Photos module that only downloads the URLs of photos. From these URLs, I create BitmapSource objects.

I have a strange problem that all API calls during photo upload get a timeout.

It's hot. I am creating BitmapSource objects:

 Image = new BitmapImage(new Uri(url)); 

I linked the image collection to the ItemsControl using the Image control.

Have you had any similar problems? Is it because of BitmapSource or RestSharp?

To fill out the question: we use Node.js + Sails.js on the server side.

+4
source share

All Articles