Hi, I am using this file to retrieve image - logo from web server. public ImageView getView(String myImageURL) { static String myImageURL = http://www.fusionedv.com %imagedit; Log.i("TAG","downloadFile000000000000000000"+myImageURL); ImageView i = new ImageView(this);
try { /* Open a new URL and get the InputStream to load data from it. */ URL aURL = new URL(myImageURL); URLConnection conn = aURL.openConnection(); Log.i("TAG","downloadFile1111111111111111111"+myImageURL); conn.connect(); InputStream is = conn.getInputStream(); Log.i("TAG","downloadFile2222222222222222222222"+is.read()); /* Buffered is always good for a performance plus. */ BufferedInputStream bis = new BufferedInputStream(is); Log.i("TAG","downloadFile33333333333333333333="+bis.read()); /* Decode url-data to a bitmap. */ // Bitmap bm = BitmapFactory.decodeStream(bis); Bitmap bm = BitmapFactory.decodeStream(is); // Log.i("TAG","downloadFile4444444444444444444"+bm.getHeight()); // bis.close(); is.close(); /* Apply the Bitmap to the ImageView that will be returned. */ i.setImageBitmap(bm); Log.i("TAG","downloadFile555555555555555555555"); } catch (IOException e) { Log.i("TAG","downloadFile666666666666666666666666"); Log.e("DEBUGTAG", "Remtoe Image Exception", e); } /* Image should be scaled as width/height are set. */ // i.setScaleType(ImageView.ScaleType.FIT_CENTER); /* Set the Width/Height of the ImageView. */ return i; } I still get streaming problem and images are not loaded. Anybody can help? Best, Markoz -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en