convert receive package to byte array