Try imagemagick - they have routines to convert from jpg to bmp. Once in bmp, you can load up your array. Remember that bmp stores its images upside down.
Also, remember that jpg is a compressed format and may not be a very accurate representation of the data.
Alternatively, load it into paint and convert it to bmp first.