Android java.IOException: Illegal Character in hostname at index 0
<p>I wonder if anyone can help me on this. It's about android development.</p>

<p>i am using this image link for example.
<a href="http://soompi_images.s3.amazonaws.com/4b1d3d685350b3ee612d098fda7e7441_large.jpg" rel="nofollow">http://soompi_images.s3.amazonaws.com/4b1d3d685350b3ee612d098fda7e7441_large.jpg</a></p>

<p>I get the image using inputstream to get the image content.</p>

<pre><code>InputStream is = 
   (InputStream) new URL("http://soompi_images.s3.amazonaws.com/4b1d3d685350b3ee612d098fda7e7441_large.jpg")
    .openStream();
</code></pre>

<p>This is to get the image from the image link for my drawable.</p>

<p>However, i am getting Illegal Character at hostname at index 0.</p>

<p>I have tried htmlEncode but it does not work. So i hope someone can help me.</p>

<p>Thanks.</p>
