How to send pdf as response to other URLS using restlet
b
battk
07/11/2019, 11:34 AM
You have two general options for restlets
battk
07/11/2019, 11:36 AM
You can make sure your pdf is base 64 encoded and then return xml or json where the encoded pdf string is a string element somewhere in the json or xml
battk
07/11/2019, 11:39 AM
Or you can just pretend the pdf is plain text and return the pdf string (or encoded pdf string)
d
D17339
07/11/2019, 2:24 PM
When I tried to print base64 decoded PDF string ..it says cannot load document
b
battk
07/11/2019, 2:41 PM
i personally would only expect encoded strings to be usable