Hi I have a database that has a table with complex java objects stored in a binary field.
In java i would do something like: protected Object read(byte[] buf){ Object obj = null; if (buf==null) return obj; try { ObjectInputStream objectIn = new ObjectInputStream( new ByteArrayInputStream(buf)); obj = objectIn.readObject(); } catch (IOException e){ ... } return obj; } I am stumped as to how to handle this sort of syntax in clojure. (defn select-test2[] (with-connection db (with-query-results res ["SELECT BIN_OBJ FROM MYTABLE where ID =16000254"] (doall res)))) Any thoughts would be *most* appreciated. Thanks Base -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en