Downloading Pictures

Topics: User Forum
Oct 7, 2006 at 4:37 PM
Hi,

I am trying to wrote some code for downloading pictures using the FlickrNet.flickr.DownloadPicture method. Don't know if that's the right way to do it?

Been looking for any example of downloading photos, but haven't found any.

Anyway, one problem I have with this is that 2 parameters (actually of the Photocollection), OriginalURL and OriginalFormat seems to be empty for the photos in the PhotoCollection. I'd thought I use those for downloadning the original photo, and to know what picture format it was on the picture I am downloading.

I am getting the PhotoCollection from a flickr.PhotosSearch.
Coordinator
Oct 7, 2006 at 6:32 PM
You need to specify the PhotoSearchExtras.OriginalFormat value in your search options.

e.g.

options.Extras |= PhotoSearchExtras.OriginalFormat;
Oct 8, 2006 at 4:44 PM
Aha, so the same goes for OriginalUrl?
Coordinator
Oct 8, 2006 at 7:34 PM
The OriginalUrl should be set fine if you set it to include the OrignalFormat.
Oct 9, 2006 at 11:48 AM
Worked nicely! :-) Thanks!