You don't mention what version of Spring you're using, but in any case you can set those properties using either a bean post processor or using Spring Expression Language (Spring-EL). Here is one example (there are probably others).
You would then leverage your binary-file-reading class either as a bean directly or, if it doesn't have the requisite methods (for example getters) that you need, indirectly (e.g. by composition inside some other bean, i.e. an instance of a class you write that leverages that binary-file-reading class).