Loading .JPG into a texture?

is there a way to load a JPEG file into a texture? is there some source code that I could download or look at?

What you could do is use a 3rd party library to decompress the jpeg file, and use the decompressed image for the texture. Intel has such a jpeg library available, as does the IJG at http://www.ijg.org/