Forgot to change the FrameType to DataFrame in ToBytes.