Upload image without extension in webapp

Asked

Viewed 182 times

0

I have a webapp made in Angularjs and Ionic. At a given moment I load images of a webservice, however these images have no extension, being something like, https://servidor.com/usuario/avatar/128/128. When I run the app in the browser, the image loads normal, however when I compile for Android or iOS the image simply doesn’t open...

I’m loading the image into a tag <img ng-src="https://servidor.com/usuario/avatar/128/128"/>

Has anyone ever been through it? How to fix it?

Abs

  • You left the phone with internet access ? Maybe as the image is on the web the phone needs to be connected in it. It’s just a suggestion, I believe you’ve already tested it, but it will...

  • I left @Rubens Barbosa, inclusive liberei o acesso a links externa com o plugin Cordova Whitelist, tanto que os demais dados são retornados normalmente... Any other suggestion?

  • I’ve had problems with ng-src, amazingly I switched ng-src for just src={variaval}} and it worked, I don’t know why but how it’s working I left it there

1 answer

-1

Try to load your img with:

img/image.pngo

rather than

/img/image.png

I had that same problem and that was my solution.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.