Encodes a byte array and return the encoded data
as a byte array.
Parameters: pArray - Data to be encoded A byte array containing the encoded data throws: EncoderException - thrown if the Encoderencounters a failure condition during theencoding process.