Either way, the problem is that you end up bypassing the built-in JPEG code. To use that, you pretty much HAVE to use a proper file. Although you can get the data in an image array, pass it to a separate JPEG decoder DLL, then display in the picturebox. A memory-mapped file is the faster of the two, but it's NASTY to pull off.