Downloading pdf from web service
Opened this issue · 0 comments
prabhug1987 commented
Hi,
I am using this plugin for getting details from web service. It is working for web service but I couldn't get the file attachment from it.
def attachRead = rest.get('url') {
contentType "application/pdf"
}
def bodyText = attachRead.body.toString()
Please help me or let me know how to convert this to stream or file.