Image Post Java not working



I am trying to post an image using api. But I am getting the following error:
The Twitter REST API v1 is no longer active. Please migrate to API v1.1.

Uploading the image using works fine.

Could you please provide me a sample implementation for Java to upload media (images/videos) using 1.1/media/upload.json?


I’m surprised you are seeing that error from the media upload endpoint.

Are you using Twitter4J? Have you been able to use the example provided by the author?


Thanks Andy. I was able to solve the problem.