Set image from binary JPEG

I have in memory a byte array corresponding to the raw jpeg binary information of an image. I was wondering how can I display this image in OF.

Check out setFromPixels in ofImage http://www.openframeworks.cc/documentation/graphics/ofImage.html#show-setFromPixels

I can’t as the bytes per pixel for a JPEG encoded image are not always the same. I’m getting these frames from a camera and the byte array’s size is always different. I’m gessing because of the small differences in compressing each frame.

hi,
i have the same problem. Did you solve it? how did you do?
i am using the OF 0062.
thanks

Sorry I didn’t, as far as I know, in order to display an image it needs to be decoded.

look my post:
http://forum.openframeworks.cc/t/how-can-i-use-a-jpeg-image-with-addon-opencv/13538/4

i had an answer, but actually my problem is that i use OF 0062 and it is old. Let me know.