Respected sir
i want to download an image using javasript or jquery
is it possible to dowlnload an image using java script or jquery?
i am sending the code wich on code behind (.cs)page iwant same code f or jscrpt or jquery?
string title1 = "";
bool result = false;
title = Hiddenimageid.Value; ;
arrtitle = title.Split('/');
string lastItem = arrtitle[arrtitle.Length - 1];
System.Net.WebClient net = new System.Net.WebClient();
// string link = "http://res.cloudinary.com/adcpl/image/upload/" + title + "";
//string link = "https://www.opendrive.com/files/" + title;
string link = "http://sachinm.opendrive.com/files/" + title;
// string link = "http://sachinm.opendrive.com/files/OF82MTkwMjc2OV80Z05YYV8yMWM0/E-16.jpg";
Response.ClearHeaders();
Response.Clear();
Response.Expires = 0;
Response.Buffer = true;
Response.AppendHeader("Content-Disposition", "attachment; filename=" + lastItem + "");
Response.ContentType = "APPLICATION/octet-stream";
Response.BinaryWrite(net.DownloadData(link));
Response.End();
thanks & regards
bhushan