Not sure if this will help with what you are working on. I ran across a similar problem last week and ended up writing a generic library that converts various sizes of integers to big or little endian byte arrays and then back again.
Code is located at: http://github.com/jbester/cljext/tree/master/cljext%2Fbinpack.clj Jeffrey On Nov 19, 3:45 pm, prhlava <[EMAIL PROTECTED]> wrote: > Hello again, > > Thank you all for the posts and explanations, > > After getting the clojure SVN version and few tweaks in the code, the > working result looks like: > > (with-open [ofile (new java.io.FileOutputStream > (str result-directory > "/" > (make-filename x y)) > (boolean true))] ; I am appending only > (. ofile write > (into-array Byte/TYPE > [(byte (bit-shift-right pix 16)) > (byte (bit-shift-right pix 8)) > (byte pix)])) ; the pix is of the > Integer type > > Vlad --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---