I'm doing this as a response to my GET:
self.response.setHeader('content-type', 'application/pdf')
self.response.write(open('/opt/splunk/bin/ffff.pdf','rb').read())
but I receive only a partial base64 of the PDF file and the following error:
(most recent call last): File "/opt/splunk/bin/rest_handler.py", line 79, in <module> print splunk.rest.dispatch(**params) IOError: [Errno 11] Resource temporarily unavailable </msg>
any help is appreciated, thank you