> Copying the url into the browser correctly brings back the image.

PD4ML supports only JPEG, PNG and GIF. First please make sure, the image is of the supported formats.

Also if the image generation requires a session context, you need to make sure SESSIONID is propagated to the image generation servlet.