Go to this Example

Java Demo Retrieve Image