主机查找失败,针对某些图像链接。

huangapple go评论69阅读模式
英文:

Failed Host Lookup for certain image links

问题

以下是您要翻译的代码部分:

return Image.network('https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fgta5mod.net%2Fwp-content%2Fuploads%2F2020%2F12%2FLos-Santos-Customs-Extension-14.jpg&f=1&nofb=1&ipt=849a89cdeb334c0394a0dc69b23915a3235120d13fdc649d76e79c947560adc1&ipo=images');
return Image.network('https://staticg.sportskeeda.com/editor/2022/12/e7b31-16700956896704.png?w=840');

希望这有所帮助。

英文:

I'm trying to add network images that users submit to my app via link.

return Image.network('https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fgta5mod.net%2Fwp-content%2Fuploads%2F2020%2F12%2FLos-Santos-Customs-Extension-14.jpg&f=1&nofb=1&ipt=849a89cdeb334c0394a0dc69b23915a3235120d13fdc649d76e79c947560adc1&ipo=images');

This image will give me a "Failed Host Lookup" exception

While this one won't:

return Image.network('https://staticg.sportskeeda.com/editor/2022/12/e7b31-16700956896704.png?w=840');

Something I've noticed (in case it helps) is that images hosted on Github will behave nicely.

答案1

得分: 1

The first part to be translated: "Looking up your images, the first has a .bin extension while the last has .PNG ..."

The second part to be translated: "I think Image widget support only global image extensions like jpg,PNG, and so on... Try converting your image to a jpg format and try again"

英文:

Looking up your images, the first has a .bin extension while the last has .PNG ... I think Image widget support only global image extensions like jpg,PNG, and so on... Try converting your image to a jpg format and try again

huangapple
  • 本文由 发表于 2023年6月30日 01:52:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76583504.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定