public void DeletePhoto(SiteMonitoringPhoto item) { PicasaService service = InitPicasaService(); PicasaEntry a = (PicasaEntry)service.Get(item.AtomUrl); byte[] b; HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(item.Url); WebResponse myResp = myReq.GetResponse(); Stream stream = myResp.GetResponseStream(); using (BinaryReader br = new BinaryReader(stream)) { b = br.ReadBytes(500000); br.Close(); } myResp.Close(); MemoryStream mem = new MemoryStream(b); UploadPhotoToBackupAlbum(item.SiteMonitoring, mem); a.Delete(); }