NI made some cool JPEG string conversion VIs that convert between an image and a JPEG compressed string. The original use was to send a video stream from a realtime PXI chassis to a client computer for display. The compression let them send a fairly high frame rate of quality images.
Just search the developer exchange for JPEG string and you should come up with the routines.
Bruce
Bruce Ammons
Ammons Engineering