Search code examples
androidandroid-volleycontent-typeimageurlnetworkimageview

Volley NetworkImageView not showing for some urls, content type maybe wrong


My app uses the NetworkIamgeView class in the Volley library to show the images. For some urls the images are not shown correctly. I noticed that these links point to png files, however the content type is image/jpeg. Is that the cause of the problem?

http://baseurl/Standard1280x720.jpg/jcr:content/renditions/cq5dam.thumbnail.744.415.png

However these links are all rendered correctly on the browser app on Android phones. Are there some simple fixes to handle this?

Thanks Ray


Solution

  • Figured out the problem. Volley does not support redirection.Had to modify the library to handle http 301 results.