0

I want to send a binary file in Android using UrlConnection class. I've found the code snippets such as here Sending files using POST with HttpURLConnection but I wonder, hasn't anything changed since then to make it easier? Because code there looks pretty complicated for such a simple thing which many developers need.

And I don't want to use any third-party libraries.

Community
  • 1
  • 1
  • The question can be reduced to: "I wish this were easier, but I refuse to use tools which make it easier." -- Sorry, nobody can help you with that. – 323go Dec 25 '15 at 04:27
  • Possible duplicate of [Sending files using POST with HttpURLConnection](http://stackoverflow.com/questions/11766878/sending-files-using-post-with-httpurlconnection) – Kevin Reid Dec 25 '15 at 22:38

1 Answers1

1

If you really want to make it easier,you think that using the thrid-party library should be a good idea.In fact,google provide a library called "volley",it is easy to use.of course,if you want to use native method,you just do it.

ccqy66
  • 19
  • 1