tags:

views:

36

answers:

3

hi i am new to iPhone.What i need is i have to get images from local XML file and local folder that contain images.I am able to get string in XML file ,But i did n't how to get images through XML file please post some code or link.Thank u in advance

A: 

You can store the path of your images (in local folder) in the xml as string. You can retrieve the path from xml and show the image from the file using:

UIImage *image = [[UIImage alloc] initWithContentsOfFile:filePathRetrievedFromXML];

where 'filePathRetrievedFromXML' is your image's path.

lukya
A: 

00000000000000000000

vipgowns
what is this 00000000000000000000
MaheshBabu
A: 

If you want the images to be uploaded to serer then you have to convert the image to data and then pass it on as string in your xml file and on server side again convert the data to image and you will get the images stored locally to the webserver..

Another thing is if you want the local images in xml file and are going to use it locally then store the name of the images in the xml and fetch the name accordingly...

Suriya