iPhone 不显示 aspx 网站生成的图像
我想开发一个针对 iPhone 优化的网站,其中包括生成的图像。为了生成图像,我调用外部网站(aspx)。示例:
https://url/filedownload.aspx?documentid=1234&mimetype=image/jpeg
这在电脑上的任何标准浏览器上都没有问题,图像会在 2 秒后显示。但在 iPhone 上只显示蓝色问号。
结果是 ~ 170 * 100 72dpi。
i want to develop an iPhone optimized website, which includes an generated image. To generate the image i call an external website (aspx). Example:
https://url/filedownload.aspx?documentid=1234&mimetype=image/jpeg
This is no problem on any standard browser on the pc, the images shows up after 2 seconds. But on the iphone there is only the blue question mark showing.
The resultion is ~ 170 * 100 72dpi.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如建议的那样,这肯定是一个服务器端问题 - 需要工作链接或源示例来帮助解决。与此同时,还有一些其他事情需要检查;创建的图像类型是否与指定的内容类型匹配?
然后,我会尝试将完全相同的图像(作为静态物理文件)添加到网站,将其加载到 iPhone 中(以证明图像文件数据没有任何根本错误),然后将动态图像代码中的响应标头与确保它们相同 - 例如,您是否需要附件文件名?
This is certainly a server-side issue, as suggested - a working link or a sample of the source is needed to help resolve. In the meantime, some other things to check; does the image type created match that of the content type specified?
I would then try adding the exact same image (as a static physical file) to the website, load this in an iPhone (to prove there is nothing fundamentally wrong with the image file data) and then compare response headers from your dynamic image code to ensure they are the same - do you require attachment-filename for example?