Posted on: 11/1/2014 12:15:57 AM | Views : 525

Hi to all dear friends,
I have a problem! I have 2 handler files... one of them is for displaying image from ftp folder and another one is for resizing the image.
But I can not merge them to show resized image from ftp folder.
If you can help me?
Thanks in advance :)
----------------------------------------------
public class ImageHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "image/jpeg";
// for ftp connenction string FileSaveUri = @"ftp://www.mysite/Images/"; string ftpUser = "username"; string ftpPassWord = "password";
FtpWebRequest displayRequest = (FtpWebRequest)WebRequest.Create(new Uri(FileSaveUri + context.Request.QueryString["fileName"])); displayRequest.Method = WebRequestMethods.Ftp.DownloadFile; displayRequest.Credentials = new NetworkCredenti ...

Go to the complete details ...