http://www.vbaccelerator.com/codelib/gfx/vbjpeg.htm

Not sure if it'll work with VB4 though...