Hello,
I'm trying to download a pdf file via an http request. But for some reason is not working using clj-http.
I was able to download the file using javascript, using the following code:
axios.get(url,
{responseType: 'arraybuffer',
responseEncoding: 'binary',
headers: {
'Content-Type': 'application/pdf',
'acess_token': token
}
}
How can I do the same thing using clj-http ?
Could someone give me some directions ?
Can you post your code and the error you are getting?
Hi @jumar I found out how to solve using {:as :byte-array} Thanks anyway