実現したいこと
・curlコマンドでバイナリファイルをサーバーに転送
・処理結果を受信し、ローカルに保存
発生している問題
以下のようにcurlコマンドでwavファイルを送信しました。
curl --data-binary @Mix.wav --noproxy '*' http://127.0.0.1:8080/predictions/denoise_transformer -v
すると、以下のような結果が返ってきました。
* Trying 127.0.0.1... * TCP_NODELAY set * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > POST /predictions/denoise_transformer HTTP/1.1 > Host: 127.0.0.1:8080 > User-Agent: curl/7.58.0 > Accept: */* > Content-Length: 128046 > Content-Type: application/x-www-form-urlencoded > Expect: 100-continue > < HTTP/1.1 100 Continue * We are completely uploaded and fine < HTTP/1.1 500 Internal Server Error < content-type: application/json < x-request-id: 5057cd2e-b0ce-4155-a05f-9d2d39d8a8ef < Pragma: no-cache < Cache-Control: no-cache; no-store, must-revalidate, private < Expires: Thu, 01 Jan 1970 00:00:00 UTC < content-length: 89 < connection: close < { "code": 500, "type": "ErrorDataDecoderException", "message": "Bad end of line" } * Closing connection 0
そもそもcurlコマンドでバイナリファイルを送信し、結果をバイナリファイルで受信するということが出来るのでしょうか?
そもそもサーバー側が wav をファイルとして受け取るのかデータとして受け取るのかによるのでは…。

回答1件
あなたの回答
tips
プレビュー