title: How to load a image on image view from FTP URL in ios
body: <p>I am trying to load image into a image view from FTP URL using the following code</p>
  
  <pre><code>    NSURL * imageURL = [NSURL URLWithString:@"ftp://50.63.12.12/bpthumb.jpg"];
      NSURLRequest *request = [[NSURLRequest alloc]initWithURL:imageURL];
      UIImage * image = [[[UIImage alloc]initWithData:request]autorelease];
      UIImageView *imgView=[[UIImageView alloc]initWithFrame:CGRectMake(50, 50, 200, 200)];
      [imgView setImage:image];
      [self.view addSubview:imgView];
  </code></pre>
  
  <p>But its not working.</p>
  
  <p>I know I have to provide my <code>FTP</code> credentials to connect to <code>FTP</code> and get images in ma URL.</p>
  
  <p>Please suggest me the way out.</p>