c# - Download images using web browser control -
in web browser app windows phone 7, able see images, want download images web pages(using context menu) , save media library. web browser control named browsers. can me? in advance help? there errors in below codes- in "uri" , in "e".
private void menuitem_click(object sender, routedeventargs e) { httpwebrequest webrequest = httpwebrequest.createhttp(uri);>>>error in "uri" webrequest.begingetresponse((asynccallback) => { try { medialibrary library = new medialibrary(); library.savepicture(imagename, webrequest.endgetresponse(asynccallback).getresponsestream()); } catch (exception e)>>>>>error in "e" {} }, webrequest); } public string imagename { get; set; }
tab , hold on image in browser control ... geta context menu saving image ?
Comments
Post a Comment