How to upload binary file using URLConnection

后端 未结 1 995
面向向阳花
面向向阳花 2020-12-16 18:46

In order to upload a binary file to an URL, I have been advised to use this guide. However, the file is not in a directory, but is stored in a BLOB field in MySql db. The BL

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 19:33

    My code was correct.

    The host was giving an error because it didn't expect the Content-Transfer-Encoding header. After removing it, everything went fine.

    0 讨论(0)
提交回复
热议问题