If you have like in the first example, i think you have it wrong. You should not put the whole http://blabla . Maybe the application thinks that you want to access somethign outside of your application. Since, this image is in your code, (in a folder in your web applciation) and not somewhere in the internet in another server you should put the relative url of the image.