This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-25
Channels
- # aleph (12)
- # announcements (2)
- # beginners (40)
- # calva (8)
- # cider (26)
- # cljs-dev (71)
- # cljsrn (2)
- # clojure (122)
- # clojure-dev (9)
- # clojure-europe (2)
- # clojure-nl (2)
- # clojure-spec (42)
- # clojure-uk (20)
- # clojurescript (86)
- # cursive (15)
- # data-science (1)
- # datomic (42)
- # duct (4)
- # emacs (33)
- # events (1)
- # figwheel-main (2)
- # fulcro (33)
- # jobs (2)
- # jobs-discuss (46)
- # kaocha (13)
- # leiningen (9)
- # off-topic (62)
- # pathom (75)
- # quil (2)
- # re-frame (6)
- # reagent (13)
- # reitit (3)
- # shadow-cljs (52)
- # spacemacs (3)
- # specter (17)
- # sql (6)
- # tools-deps (2)
- # vim (3)
- # yada (28)
I am having trouble converting the result of a http-xhrio GET string response (using (ajax/text-response-format)
) into a Blob object... Does anyone have any familiarity with this? https://gist.github.com/samedhi/aa0ad9d25c138d10e2156b0fdfe4c20b
Think the real issue is that when I take the binary string binary
and attempt to convert it into a js/Blob
I am getting some sort of conversion issue.
(js/Blob. #js [binary] ;; binary is the response returned from :http-xhrio
#js {"type" "application/octet-stream"
"ending" "transparent"})
;; Note: binary is of (.length) 121k
;; Blob is of (.size) 225k
;; Expected file is size is 127k
;; ... something must be wrong.... :/
@samedhi you probably need to override :read
and :type
keys in :response-format
. This is how I got it working: https://github.com/lipas-liikuntapaikat/lipas/blob/master/webapp/src/cljs/lipas/ui/reports/events.cljs#L20-L43