This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-25
Channels
- # announcements (1)
- # asami (3)
- # aws (2)
- # babashka (8)
- # beginners (60)
- # biff (3)
- # calva (45)
- # clj-http (3)
- # clj-kondo (19)
- # clojure (50)
- # clojure-europe (23)
- # clojure-nl (8)
- # clojure-spec (4)
- # clojure-uk (3)
- # clojurescript (32)
- # conjure (3)
- # datomic (7)
- # events (2)
- # fulcro (24)
- # graalvm (3)
- # inf-clojure (3)
- # jackdaw (1)
- # lsp (3)
- # malli (8)
- # missionary (14)
- # off-topic (1)
- # polylith (3)
- # portal (11)
- # rewrite-clj (63)
- # shadow-cljs (21)
- # spacemacs (7)
- # tools-build (6)
- # xtdb (4)
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 ?
Hi @U06BE1L6T I found out how to solve using {:as :byte-array} Thanks anyway