(help) how to read and show a gray image using jogl?

I have an array including the information of the gray image.
how can i use jogl to process it?

or is there someone have the program that could read and process the JPG image using the opengl or jogl?

thanks. a lot.

Have you looked at the TextureIO classes in com.sun.opengl.util in the JOGL distribution? There is an example in demos.texture.TestTexture in the jogl-demos workspace showing how to use the APIs.

Thank you.