Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 HttpSendRequest API 发送图像。
基本上我想用一些字符串参数发布请求,在这些参数之后我需要发送原始图像数据。
那么是否可以创建一个长度等于字符串大小加上图像文件大小的无符号字符缓冲区,然后执行字符串的 memcpy 和图像数据的 memcpy?
HttpSendRequest 可用于发送图像数据。
基本上我们需要打开图像数据文件并在缓冲区中读取图像文件,然后在 HttpSendRequest 中传递它。
应在无符号字符缓冲区中读取图像数据。