Use byte array decoding instead of file decoding