Does anyone know of a link or links that could help me figure out how to make my java program take a screen shot of the current buffered image and submit that image to a website server.

thats a little confusing so ill tell you what im working on

i am working on a emulator that plays video games online.

i want to user/player of the game to be able to press the "A" key and it captures the current img of the game (the buffered img) and then uploads that img to the website

i want the screen shot of only the buffered img so robot wont work very well since that takes a shot of the whole computer screen

if anyone has a link to an example code of this would be great

or give me an example of how to do this ...

(im mainly stuck on taking the screenshot of the buffered img.)