title: Loading a png file created from a php script
body: <p>I am downloading png files to a bimap.</p>
  
  <pre><code>bitmap = BitmapFactory.decodeStream(new URL(url).openConnection().getInputStream());
  </code></pre>
  
  <p>It works perfectly for "static"· images,images stored in a server with his .png file extension</p>
  
  <p>But if the image is a jsp script response nothing is downloaded into the bitmap</p>
  
  <p>The url of the script</p>
  
  <pre><code>http://xxxxxxxxxxxxxx:9000/xxxxxxx/jsp/ios/imageAlumno?X_ALUMNO=144244
  </code></pre>
  
  <p>The image is displayed properly in a browser and the html code of the response is:</p>
  
  <p><code>&lt;html&gt;&lt;body style="margin: 0px;"&gt;&lt;img style="-webkit-user-select: none" src="http://XXXXXXXXXXXXXXX:9000/XXXXXXX/jsp/ios/imageAlumno?X_ALUMNO=144244"&gt;&lt;/body&gt;&lt;/html</code>></p>
  
  <p>Any idea?</p>