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 を使用して画像を送信したい。
基本的に、いくつかの文字列パラメーターを使用してリクエストを投稿したいのですが、それらのパラメーターの後に生の画像データを送信する必要があります。
では、文字列のサイズに画像ファイルのサイズを加えた長さの unsigned char バッファを作成してから、文字列の memcpy と画像データの memcpy を実行しても問題ありませんか?
HttpSendRequest を使用して画像データを送信できます。
基本的には、画像データ ファイルを開き、バッファ内の画像ファイルを読み取り、それを HttpSendRequest で渡す必要があります。
画像データは unsigned char バッファで読み取る必要があります。