How to send encoded Base64 image string to server using JSON object

I am new in android . i have send image to server using Json format as a string.

so i have Encoded image string i.e base64 string.

  • How to check if position if valid in StreetView in Android
  • How do I install a JRE or JDK to run the Android Developer Tools on Windows 7?
  • How to create a mobile oriented, multiplatform, shared library in Java?
  • explanation about controltransfer in android to set up the USB communication
  • how to change key background of any key in Android soft keyboard
  • Possible to autocomplete a EditTextPreference?
  •  Json j =  new JSonObject();
    
    String Image_string = Base64.ToEncodedString(bytearray, Base64.Default);
    
    j.put("image_file_content",Image_string);
    

    But i am getting this error.
    Please help me..wts wrong

    400 Bad Request

    Bad Request

    Your browser sent a request that this server could not understand.

    Additionally, a 404 Not Found

    error was encountered while trying to use an ErrorDocument to handle the request.

    Related posts:

    Disable activity slide-in animation when launching new activity?
    Voice recognition fails to work when the voice is under recording
    At what time in the application lifecycle can/should you use layout measurements?
    Update Android Studio Gradle plugin to last version
    Why does my app size on device differ than the APK or Play store size
    Intent not received from Android Geofence event
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.