TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
karthik saraswatula
NA
11
4.8k
Image Download is taking lot of time while using Web Client
Sep 25 2015 1:47 AM
Hi,
Am downloading an image from hosting server to local server using Web Client.But it is taking lot of time to download the image.Below is my download functionality code.
protected void btnInvDownload_Click(object sender, EventArgs e)
{
if (lstImgPath.Items.Count != 0)
{
string filepath = lstImgPath.SelectedItem.Text;
Response.AddHeader("Content-Disposition", "attachment;filename=\"" + filepath + "\"");
WebClient client = new WebClient();
client.DownloadFile("http://numbersonly.co.in:9191/HSC_Mobile_Test/images/" + filepath + ".jpg", Server.MapPath("~/images/Eqp/" + filepath));
client.Proxy = null;
Response.End();
}
}
Thanks,
Karthik S
Reply
Answers (
1
)
comparing the values in datagrid
database connection in console application