Introduction:
In this article,i am going to explain about how to download a picasa files from google using asp.net/c#.
Main:
We allready know picasa is a management software for organizing and editing digital photos, originally created by Idealab and owned by Google since 2004.
We need .NET google API for downloading picasa fies from google server,For downloading .NET google API just click http://code.google.com/p/google-api-for-dotnet/
Just refer the below items,
using Google.GData.Photos;
using Google.GData.Client;
PhotoP_Query P_P_Query = new PhotoP_Query();
P_Query.Uri = new Uri(PhotoP_Query.CreatePicasaUri("5260651714210968882" )); // I am trying to download url http://picasaweb.google.com/lh/view?feat=tags&psc=G&filter=1&tags=flowers#5260651714210968882
PicasaService service = new PicasaService("PicasaImages");
PicasaFeed feed = (PicasaFeed)service.Query(P_Query);
foreach (AtomEntry P_entry in feed.Entries)
{
string P_uri = new Uri(P_entry.Content.Src.ToString());
Stream stream = service.Query(new Uri(P_uri));
pictureBox1.Image = new Bitmap(stream);
}
using Google.GData.Photos; using Google.GData.Client; PhotoP_Query P_P_Query = new PhotoP_Query(); P_Query.Uri = new Uri(PhotoP_Query.CreatePicasaUri("5260651714210968882" )); // I am trying to download url http://picasaweb.google.com/lh/view?feat=tags&psc=G&filter=1&tags=flowers#5260651714210968882 PicasaService service = new PicasaService("PicasaImages"); PicasaFeed feed = (PicasaFeed)service.Query(P_Query); foreach (AtomEntry P_entry in feed.Entries) { string P_uri = new Uri(P_entry.Content.Src.ToString()); Stream stream = service.Query(new Uri(P_uri)); pictureBox1.Image = new Bitmap(stream); } |
Conclusion:
Hope this helps,
Happy Coding.
Exactly what I was looking for !!!!
))))
THANKS A LOT
Actually,
If i want to download every album and pictures linked with an account …. do you have an idea ?
There are plenty people that encounter what you go through daily. I can sincerely say that I am one of those fans. In time more people find your blog.
I am definitely bookmarking it as well as sharing it with my friends
I want to quote your post in my blog. It can?
And you et an account on Twitter?
I appreciate you for the recommendation! I am going to try it out.
I would like to exchange links with your site netprogramminghelp.com
Is this possible?
Since this really is my 1st visit to your web site, I want to say greetings! Excellent web site anyway.
Great job on the blog, it looks outstanding. I am going to save it and will make sure to visit often