Fork me on GitHub
#clj-http
<
2021-11-25
>
wcf22:11:54

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 ?

jumar19:12:54

Can you post your code and the error you are getting?

wcf20:12:38

Hi @U06BE1L6T I found out how to solve using {:as :byte-array} Thanks anyway