如何使用iOS中的POST方法以base64图像字符串发送参数?

How to send parameters with base64 image string using POST method in iOS?

我有参数 FirstName、LastName、Email 和图像,需要以 base64.I 的形式发送,需要适当的代码。

Base64 用于将二进制数据转换为文本。

在您的情况下,只有图像需要以该格式编码,其余的应该是文本。

Convert UIImage to Base64 string in Objective-C and Swift