Liking cljdoc? Tell your friends :D

sight.utils


file-extensionclj

(file-extension file-name)
source

file-path->base64fileclj

(file-path->base64file file-path)
https://stackoverflow.com/questions/42523024/why-is-image-corrupted-when-converted-to-base64
https://stackoverflow.com/questions/23018870/how-to-read-a-whole-binary-file-nippy-into-byte-array-in-clojure
sourceraw docstring

file-path->mime-typeclj

(file-path->mime-type file-path)
source

slurp-bytesclj

(slurp-bytes x)
Slurp the bytes from a slurpable thing.
https://stackoverflow.com/questions/23018870/how-to-read-a-whole-binary-file-nippy-into-byte-array-in-clojure
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close