Loading of grayscale textures

Hi!

Anybody out there who has got loaded 8-bit grayscale png’s as a texture? Which settings should I choose for glTexImage2d and how should I transform the BufferedImage and copy it into ByteBuffer? I’ve tried some loaders from this forums (the one of big textures thread and some other), but I failed :(.

cheers

basti