Convert an hex string to a NSData?

For converting NSData to a NSString, try "initWithData:encoding.

Up vote 0 down vote favorite share g+ share fb share tw.

I've got a string (str) that contains a value like X'FFD8FFE000104A46....01010000010001000'. That string is created from a xml file by the method: - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string { str = str stringByAppendingString:string; } How can I get the image back from that string? Thanks in advance, Andrea iphone string uiimage hex nsdata link|improve this question edited Sep 15 '10 at 6:57 asked Sep 13 '10 at 16:43Andrea Mattiuz4627 75% accept rate.

Please rephrase. Give examples. – Shaggy Frog Sep 13 '10 at 16:47 I've edited the answer – Andrea Mattiuz Sep 15 '10 at 6:57.

For converting NSData to a NSString, try "initWithData:encoding:" For converting NSData to an UIImage, try "imageWithData.

You may find GTMStringEncoding helpful, from Google Toolbox For Mac.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions