i have looked in many places on lead on how or if possible view images uploaded cloudinary, specific tag through android studio app trying build.
i able implement upload option user, adding tag images, , public id, retrieving these information, cant find on how view these images, example want app able view images specific tag ( username ) user uploaded pictures, , delete them ? , view other images uploaded other user no other permission.
is possible , how !?
i ended code, , encountered problem;
@override public void onclick(view v) { new jsontask().execute("http://res.cloudinary.com/cloudname/video/list/xxxxxxxxxxxxxxxxxxx.json"); // uploadextract(); } }); public class jsontask extends asynctask<string ,string,string> { @override protected string doinbackground(string... params) { httpurlconnection connection = null; bufferedreader reader = null; try { url url = new url(params[0]); connection = (httpurlconnection) url.openconnection(); connection.connect(); inputstream stream = connection.getinputstream(); reader = new bufferedreader(new inputstreamreader(stream)); stringbuffer buffer = new stringbuffer(); string line = ""; while ((line = reader.readline()) != null) { buffer.append(line); } return buffer.tostring(); } catch (malformedurlexception e) { e.printstacktrace(); } catch (ioexception e) { e.printstacktrace(); } { if (connection != null) { connection.disconnect(); } try { if (reader != null) { reader.close(); } } catch (ioexception e) { e.printstacktrace(); } } return null; }
in log following;
03-28 12:36:14.726 20333-21459/net.we4x4.we4x4 w/system.err: java.io.filenotfoundexception: http://res.cloudinary.com/we4x4/video/list/3c42f867-8c3a-423b-89e8-3fb777ab76f8.json
i not sure if understanding correct of method or doing wrong ? since in admin api docs. or cloudinary syntax html request , in suggested page nadav:
this should've returned json ?
the following feature allows retrieve json formatted list of resources share common tag:
https://support.cloudinary.com/hc/en-us/articles/203189031-how-to-retrieve-a-list-of-all-resources-sharing-the-same-tag-
note image removal coerce use server-side code (e.g. java), since deleting via cloudinary requires signature based on api_secret
.
Comments
Post a Comment