So I'm working on a project that requires being able to bring up google images pertaining to the selected item.
Right now I'm using the Google Custom Search API to make an image search and getting the results back as a json. I then parse out the first FIVE image paths provided and add these as images to a wrap panel.
Quick snippet of what this looks like
BitmapImage bmi = new BitmapImage(new Uri(url, UriKind.Absolute));
image.Source = bmi;
The problem is that this takes on average 20-40 seconds. While the google search takes less than 1. I initially assumed this is because google is just loading thumbnails while I'm downloading the complete image, but I checked out all the sizes and none of them are larger than 30kb, and all download instantaneously through a web browser.
So I think I'm just approaching this the wrong way.
What would be the right way to load in previews and then allow the user to select one to actually save locally.
Regards. John W.