403 Error in Android app while uploading image

I am trying to upload images to server using POST method. I am getting 403 error while receiving response. Already passing token in headers. Can anyone please help me with the issue. I saw others facing same issue yet no solution to provided for the problem.
@revant_one if you have any ideas please help.
Thank you in advance.

Did you try this [solved] cURL example of an attachment upload RPC call?

Sorry if I was not clear before. Actually I need help with Android app.

Thank you.

You’ll get frappe framework and ERPNext help here.

You’ll need to convert curl command to java/kotlin code.

Try this https://stackoverflow.com/questions/28588345/volley-string-post-request-from-a-curl-command