According to the SDK docs the actual Buffer should be used and the SDK will handle encoding etc.