http://code.google.com/p/selenium-java-evidence/

When we take a picture with Selenium, there are basically two ways to do this. This will influence how the image will be presented in the evidence report. This library uses the capture screenshot by Selenium to return a string as Base64 In the descriptions above, I'll use selenium as a new Selenium instance