[Mono-bugs] [Bug 652296] crash if i try to download an image from the internet when i read the urlConnection's InputStream value

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 9 11:13:57 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=652296

https://bugzilla.novell.com/show_bug.cgi?id=652296#c1


Jonathan Pobst <jpobst at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jpobst at novell.com

--- Comment #1 from Jonathan Pobst <jpobst at novell.com> 2010-11-09 16:13:57 UTC ---
You are probably better off doing this on the Mono side than the Java side. 
One way is something like this:

WebClient wc = new WebClient ();
var stream = wc.OpenRead ("http://www.google.pt/logos/classicplus.png");

Bitmap bmp = BitmapFactory.DecodeStream (new JavaInputStream (stream));
imageView.SetImageBitmap (bmp);

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list