java - How to download images from url? -


i want download image reome url , ssl error

 string imgurl="http://whootin.s3.amazonaws.com/uploads/upload/0/0/23/82/note_03_26_2013_01_10_55_68.jpg?awsaccesskeyid=akiajf5qhw2p5zlagvdq&signature=za4yg0yks4%2fgoxsidfszaaa8vwq%3d&expires=1364888750";     final imageview  ivcurrent;    ivcurrent = (imageview)findviewbyid(r.id.imageview1);    // calling downloadandreadimage class load , save image in sd card       downloadandreadimage dimage= new downloadandreadimage(imgurl,1);       ivcurrent.setimagebitmap(dimage.getbitmapimage()); 

the error:

javax.net.ssl.sslexception: read error: ssl=0x19a4a0: i/o error during system call, connection reset peer 

your question make no sense because know nothing downloadandreadimage class, way think need add these 2 permissions in manifest:

 <uses-permission android:name="android.permission.internet" />  <uses-permission android:name="android.permission.write_external_storage" /> 

p.s if looking great imageloder library, suggest android universal image loader:

https://github.com/nostra13/android-universal-image-loader


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -