Convenience method for encoding data to a file. As of v 2.3, if there is a error, the method will throw an java.io.IOException. This is new to v2.3! In earlier versions, it just returned false, but in retrospect that's a pretty poor way to handle it. @param dataToEncode byte array of
(byte[] dataToEncode, String filename)