Converting byte array to image in xcode?
Posted
by
arizah
on Stack Overflow
See other posts from Stack Overflow
or by arizah
Published on 2012-11-24T11:05:27Z
Indexed on
2012/11/26
5:04 UTC
Read the original article
Hit count: 159
I am getting a byte array(I reckon) in NSMutableArray's
object.The NSMutableArray
i get is from Xml
parsing from a service URL..Now I need to convert that byte array to UIImage
..Gone through google and found to convert to NSData
and then UIImage
but couldn't understand how..? How can I do it ?
My array looks like this :
(
{
Name = "John";
Image = "/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJS
kcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gODAK/9sAQwAGBAUGBQQGBgUGBwcGCAoQCgoJCQoUDg8MEBcUGBgXF
BYWGh0lHxobIxwWFiAsICMmJykqKRkfLTAtKDAlKCko/9sAQwEHBwcKCAoTCgoTKBoWGigoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo/8AAEQgEKwZAAwEiAAIRAQMRAf/........
//big byte array
}
)
First of all I need to clear whether it is a byte array ?How can I extract image from this ?
© Stack Overflow or respective owner