java - Using Apache Commons Codec decodeBase64 from Clojure -


i trying decode base64 string in clojure using apache commons codec library.

i able use these methods in library:

(ns decode.core   (:import (org.apache.commons.codec.binary base64 hex))   (:gen-class))  (.encode (hex.) "s") (.decode (hex.) "0a") (.decode (base64.) "s") 

but when try use decodebase64 (.decodebase64 (base64.) "s") get

illegalargumentexception no matching method found: decodebase64 class org.apache.commons.codec.binary.base64  clojure.lang.reflector.invokematchingmethod (reflector.java:53) 

what doing wrong? seems should able call decodebase64 can call decode?

decodebase64 static java method. here how call in clojure:

 (import '[org.apache.commons.codec.binary base64 hex])  (base64/decodebase64 "s") 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -