0

i am trying to convert byte array to image formate but iam facing an error like " : ImageIO: JPEG Bogus DQT index 15", can any body help me out of it,

Thanks,

1 Answer 1

0

Without other informations i can say that: You can get the bytes in NSData and use the NSData to get the image in an UIImage object. Use initWithData method.

Sign up to request clarification or add additional context in comments.

4 Comments

thanks for comment..... img_view.image=[UIImage imageWithData: [NSData dataWithBytes:chararray length : sizeof(theResultLength)]]; here i am trying to get data from char array and converting that data to image is it correct? is there any other way to convert byte array to image?
Are you sure that your data isn't corrupted?
It's strange, because this error is given when the source is corrupted, can you try with jpegsnoop utility or something like it to test it's authenticity?@user2361155

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.