ionic ios查看大图报错 the file to show is not valid image,or could not be loaded

解决代码如下

public showImage(url: string): void {if (this.platform.is('ios')) {url = decodeURIComponent(url);}this.photoViewer.show(url);
}

如以上方法不行,使用以下方法

public showImage(url: string): void {if (this.platform.is('ios')) {url = decodeURIComponent(url);if (url.indexOf("?") != -1) {url = url.split("?")[0];console.log(url);}}this.photoViewer.show(url);
}

参考网址 https://github.com/sarriaroman/photoviewer/issues/184

ionic ios查看大图报错 the file to show is not valid image,or could not be loaded相关推荐

  1. iOS 解决报错 Module file /Users/anmo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3FOJ1MTM...

    报错 Module file '/Users/anmo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3FOJ1MTM36H3U/Co ...

  2. 【总结】ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase

    ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase to a ...

  3. CAJ文件报错提示“file does not exist”之类如何解决

    我在使用7.2版本的CAJ阅读器查看CAJ文件的时候,无论打开什么文件,都会报错"the file does not exist"之类的提示:然而在无意间的搜索中,我想起(至少在该 ...

  4. ubuntu makefile交叉编译报错:file not recognized: file format not recognized

    在linux ubuntu上编译netkit-ftp的时候报错:file not recognized: file format not recognized [root@ubuntu /arnold ...

  5. Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute permission

    为什么80%的码农都做不了架构师?>>>    Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute ...

  6. 使用docker-compose 启动emqx报错: Erlang closed the connection 查看状态报错 Node ‘emq@.’ not responding to pings

    使用docker-compose 启动emqx报错: Erlang closed the connection 查看状态报错 Node 'emq@192.168..' not responding t ...

  7. nginx鉴权之后查看pdf报错未能加载pdf文档

    nginx鉴权之后查看pdf报错未能加载pdf文档,其他浏览器正常,只有谷歌浏览器出现了该问题 nginx做了鉴权后存在该问题现象,谷歌浏览器对于跨域的要求比较严格导致的 #主要是在nginx配置中加 ...

  8. centos 7.2执行yum -y install报错Metadata file does not match checksum

    分析结论 1,Metadata file does not match checksum报错在于元文件的校验值与元文件不匹配 2,元数据是指 mnt/repodata/436345f4b666f0a4 ...

  9. adb push报错‘read-only file system‘

    使用bat脚本,执行对android设备文件的覆盖 @echo off adb root adb push hosts /etc/ pause adb已经获取到root权限,当尝试替换/etc/hos ...

最新文章

  1. SecureCRT窗口输出代码关键字高亮设置
  2. ViSP中AprilTag的实时识别与定位
  3. OpenVirteX 安装
  4. POJ 3150 循环矩阵的应用
  5. BugKuCTF WEB web基础$_POST
  6. linux下获取系统时间的方法
  7. 加载(WebView)页面,调JS刷新数据
  8. OkHttp实现登录注册验证
  9. jzoj3798-[NOIP2014模拟8.22]临洮巨人【前缀和】
  10. 中奖人js滚动效果_js使用transition效果实现无缝滚动
  11. oracle存储过程入门之hello world
  12. 用ASP.NET编写一个在线RSS新闻聚合器
  13. Linux中使用sftp的常用命令
  14. 单线程智能聊天机器人
  15. 南桥芯片组行业调研报告 - 市场现状分析与发展前景预测
  16. Firefox附加在合谋表演,谁跟踪你上网
  17. Unity笔记——1.Unity3D脚本基础
  18. python怎么引入os模块的函数_Python之OS模块函数
  19. ret-sync插件:windbg/ollydbg+ida逆向调试神器
  20. 用python给pdf批量添加水印,并给pdf加密

热门文章

  1. 网页ui设计模板素材|液体流动效果!
  2. android ascii 比较大小写,为什么可以通过ASCII中的字母排序规则来进行字母的大小写转换?...
  3. qwtqplot用法
  4. IQ数据简介:I/Q Data
  5. C++ STL 教程
  6. goland sql 脚本运行_Flink 1.9 实战:使用 SQL 读取 Kafka 并写入 MySQL
  7. caj文件浏览器_知网上PDF文件下载的问题怎么解决?
  8. android基础面试题(三)
  9. 手机长时间不用自动断网_WiFi动不动就自动断网?都怪手机的默认设置!点这里一键修改...
  10. 电芯容量在前期循环中容量增加_了解移动电源聚合物电芯,这篇文章就够了