Error 413 (Request Entity Too Large) on a Google Cloud Endpoints API call from Android

巧了我就是萌 提交于 2019-12-04 22:25:58

I believe it's because you're using image as a URL parameter rather than as the resource. I'd suggest changing @Named("image") String image to be SetImageRequest request and make a SetImageRequest class which contain the encoded String. The reason it probably works on iOS and not Android is because the iOS client uses JSON-RPC, which doesn't use URL parameters at all.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!