I am fetching a URL from an object using this code:
try {
JSONObject jsonObject = graphObject.getInnerJSONObject();
JSONObject obj = jsonObject.getJSONObject("data");
System.out.println("INSIDE URL>>> "+obj.get("url"));
Object image =obj.get("url");
System.out.println("INSIDE OBJECT IMAGE>>> "+obj.get("url"));
editor.putString("IMAGE_URL",image.toString() );
// editor.putString("IMAGE_URL","its working");
editor.commit();
The problem is that when I convert an object which contains URLto string, one third of URL is going missing:
System.out(11948): INSIDE OBJECT >>> https://demo_urljfj_jdjhhhgfx_jjdhg_jjfhhfb__1514719142_n.jpg?oh=abe04e95f14532d11f981678518cdd&oe=54BEFBC&__gda__=14213331_e0b6c1dc2a741de680afd0f8a9c370
Becomes:
https://demo_urljfj_jdjhhhgfx_jjdhg_jjfhhfb__1514719142_n
How can I fix this?
0 comments:
Post a Comment