Converting a PDF to an image is not trivial. You’d need some pretty sophisticated libraries, which most likely are not free (I’ve not searched but in prior experience there aren’t free solutions).
I assume you probably just want to return the raw bytes from the DB to the browser. You can use setResponse along with setting specific headers to cause the browser to do the right thing (prompt the user to save the file or launch Adobe Reader). The content-disposition header is the key one. Search the web for info.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services