Re: iPhone Generating and displaying images using Bitmap

2009-05-19 Thread David Duncan
On May 18, 2009, at 11:06 PM, Shraddha Karwan wrote: Hi, I get the following errors while displaying the JPEG buffered image. : Corrupt JPEG data: 584 extraneous bytes before marker 0xc0 : Quantization table 0x00 was not defined : Corrupt JPEG data: 446 extraneous bytes before marker 0xdb : B

Re: iPhone Generating and displaying images using Bitmap

2009-05-18 Thread Shraddha Karwan
Hi, I get the following errors while displaying the JPEG buffered image. : Corrupt JPEG data: 584 extraneous bytes before marker 0xc0 : Quantization table 0x00 was not defined : Corrupt JPEG data: 446 extraneous bytes before marker 0xdb : Bogus marker length : CGImageCreate: invalid image size:

Re: iPhone Generating and displaying images using Bitmap

2009-05-18 Thread Gwynne Raskind
On May 18, 2009, at 4:03 AM, Shraddha Karwan wrote: I have a buffer containing JPEG image data. I need to display this buffer in form of images. I copied this buffer to a file and then used the following: CGDataProviderRef ref = CGDataProviderCreateWithFilename([appFile UTF8String]); CGImage

iPhone Generating and displaying images using Bitmap

2009-05-18 Thread Shraddha Karwan
Hi, I have a buffer containing JPEG image data. I need to display this buffer in form of images. I copied this buffer to a file and then used the following: CGDataProviderRef ref = CGDataProviderCreateWithFilename([appFile UTF8String]); CGImageRef imgRef = CGImageCreateWithJPEGDataProvider(ref,NU