android - UIL doesn't support scheme(protocol) from webhost -


i'm getting image webhost. listview not showing image uploaded correct path on database.

error

uil doesn't support scheme(protocol) default [carkila.esy.es/upload/20160727155302300500.jpeg]. should implement support (baseimagedownloader.getstreamfromothersource(...)) java.lang.unsupportedoperationexception: uil doesn't support scheme(protocol) default [carkila.esy.es/upload/20160727155302300500.jpeg]. should implement support (baseimagedownloader.getstreamfromothersource(...)) @ com.nostra13.universalimageloader.core.download.baseimagedownloader.getstreamfromothersource(baseimagedownloader.java:280) @ com.nostra13.universalimageloader.core.download.baseimagedownloader.getstream(baseimagedownloader.java:99) @ com.nostra13.universalimageloader.core.loadanddisplayimagetask.downloadimage(loadanddisplayimagetask.java:291) @ com.nostra13.universalimageloader.core.loadanddisplayimagetask.trycacheimageondisk(loadanddisplayimagetask.java:274) @ com.nostra13.universalimageloader.core.loadanddisplayimagetask.tryloadbitmap(loadanddisplayimagetask.java:230) @ com.nostra13.universalimageloader.core.loadanddisplayimagetask.run(loadanddisplayimagetask.java:136) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587) @ java.lang.thread.run(thread.java:841) 

here how upload picture webhost

upload

@override public void onclick(view v) {     try {         bitmap = imageloader.init().from(selectedphoto).requestsize(1024,1024).getbitmap();         string encodeimage = imagebase64.encode(bitmap);         log.d(tag, encodeimage);         hashmap<string,string> post = new hashmap<string,string>();         post.put("image",encodeimage);         postresponseasynctask taskupload = new postresponseasynctask(insertactivity.this, post, new asyncresponse() {             @override             public void processfinish(string s) {                 log.d(tag, s);                 if(s.contains("upload_success")){                     toast.maketext(getapplicationcontext(),"image upload success",toast.length_short).show();                 }else{                     toast.maketext(getapplicationcontext(),"error uploading",toast.length_short).show();                 }             }         });         taskupload.execute("http://carkila.esy.es/upload1.php"); 

and how print on listview.

listview

dict.adddynamicimagefield(r.id.ivimg, new stringextractor<cars>() {         @override         public string getstringvalue(cars product, int position) {             return product.image;         }     }, new dynamicimageloader() {         @override         public void loadimage(string url, imageview imageview) {              imageloader.getinstance().displayimage(url, imageview); // default options used          }     }); 

thanks guy


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -