This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-26
Channels
- # announcements (1)
- # asami (7)
- # aws (3)
- # babashka (30)
- # beginners (21)
- # calva (48)
- # cider (11)
- # clj-commons (5)
- # clj-kondo (12)
- # cljdoc (5)
- # cljfx (1)
- # cljs-dev (32)
- # cljsrn (4)
- # clojure (218)
- # clojure-europe (88)
- # clojure-nl (11)
- # clojure-uk (31)
- # clojurescript (8)
- # cursive (98)
- # data-science (6)
- # datomic (49)
- # emacs (12)
- # events (4)
- # fulcro (47)
- # graalvm (3)
- # graphql (4)
- # introduce-yourself (5)
- # java (13)
- # juxt (9)
- # lsp (74)
- # meander (3)
- # membrane (4)
- # missionary (31)
- # off-topic (24)
- # pathom (41)
- # portal (4)
- # reagent (3)
- # releases (1)
- # remote-jobs (3)
- # rewrite-clj (4)
- # shadow-cljs (10)
- # slack-help (2)
- # testing (20)
- # tools-deps (43)
Does anyone have a link with info on how to serve something as .csv file from data created within a function as download (app uses ring and sibiro). I'm getting as far as that I can click a button on the webpage, the data gets pulled from the database, gets converted to csv and then I can only create a local csv file. I want the app to send it to my browser as download. I've been searching the web for about an hour now and came up quite empty
Maybe you can use this? https://github.com/ring-clojure/ring/blob/master/ring-core/src/ring/util/response.clj#L148
> and then I can only create a local csv file. I thought you had a file. If you have it in memory, then maybe it is just a matter of setting the right Content-Type header.