Converts a bitmap to a Base64-encoded JPEG string. Returns a data URI suitable for the API submission.