我是android新手.我已经使用Json格式将图像作为字符串发送到服务器.
所以我有编码图像字符串即base64字符串.
Json j = new JSonObject();
String Image_string = Base64.ToEncodedString(bytearray, Base64.Default);
j.put("image_file_content",Image_string);
Run Code Online (Sandbox Code Playgroud)
但是我收到了这个错误.请帮帮我......错了
400错误请求
您的浏览器发送了此服务器无法理解的请求.
此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误.
我有一个字符串
String path = /PravinSB/servlet/com.gjgj.rmf.controllers.Hello
Run Code Online (Sandbox Code Playgroud)
从这个字符串我只需要一个字--PravinSB.
我怎么能在JAVA中这样做