views:

264

answers:

2

i have soome image (.jpg,.png etc) stored in my web server. i am building an iPhone application which can upload or download images from/to my webserver.

i can upload images to my web server.

but i can not download images from my web server to my application. How i can do it????

A: 

I have never developed on iPhone but this seems what you are looking for

http://stackoverflow.com/questions/1286096/getting-image-from-url-server

Xinus
+1  A: 

Simplest technique by using UIKit

NSURL *url = [NSURL URLWithString: @"http://images.com/image.jpg"];
NSData *data = [NSData dataWithContentsOfURL: url];
UIImage *image = [UIImage imageWithData: data];
UIImageView *imageView = [[UIImageView alloc] initWithImage: image];
Elraij
use code tags ..
Xinus
thanks, newbie user ;)
Elraij
thanks for this solution.I have done this.
faisal