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.

2
  • 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. Commented Dec 25, 2015 at 4:27
  • Possible duplicate of Sending files using POST with HttpURLConnection Commented Dec 25, 2015 at 22:38

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.