Hi All !
I am trying to create an UIImage from a byte array which i get from a webservice.It comes embedded in a XML.I can parse the XML and get the byte array as a string.Then I convert the byte array (which is in NSString) to NSData. This is the code for that:-
///////////////////////// It's not working 🙁
I got my "Image_String" as "/9j/DAPEIROEOPJVCIUMKJDFKDJFEEREMERELREMFDO......."
And in "My_Data" 12324 bytes.. and nothing in "Image_From_XML" ( 0X0 image ) 🙁
Can anyone have idea about this ???
How can i load my image which is Parse by xml (in binary format).
Thnax in Advance.
I am trying to create an UIImage from a byte array which i get from a webservice.It comes embedded in a XML.I can parse the XML and get the byte array as a string.Then I convert the byte array (which is in NSString) to NSData. This is the code for that:-
Code:
NSString *Image_String = currentElementValue;
NSData *My_Data = [Image_String dataUsingEncoding:NSUTF8StringEncoding]
UIImage *Image_From_XML = [[UIImage alloc] initWithData: My_Data];
///////////////////////// It's not working 🙁
I got my "Image_String" as "/9j/DAPEIROEOPJVCIUMKJDFKDJFEEREMERELREMFDO......."
And in "My_Data" 12324 bytes.. and nothing in "Image_From_XML" ( 0X0 image ) 🙁
Can anyone have idea about this ???
How can i load my image which is Parse by xml (in binary format).
Thnax in Advance.