使用Response.BinaryWrite显示JPEG [英] Display JPEG using Response.BinaryWrite
本文介绍了使用Response.BinaryWrite显示JPEG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我展示一个这样的图片:
I'm displaying an image like this:
<img src='counter.asp'>
的 counter.asp 的是做命中计数器也决定了图像的显示频率(我将用 modrewrite
URL替换)。
counter.asp is doing a hit-counter do determine how often the image was displayed (I'll replace it with a modrewrite
URL).
问题:在 counter.asp 的脚本,我需要实际的 .JPG
图像发送到浏览器。怎么能这样做?我想我需要加载通过FSO的图像,然后使用发送 Response.BinaryWrite
- ?任何想法
The problem: in the counter.asp script I need to send the actual .jpg
image to the browser. How could this be done? I suppose I need to load the image through FSO, and then send it using Response.BinaryWrite
- any ideas?
推荐答案
FSO无法加载的二进制文件,只有文字。您将需要使用届党组成部分。
FSO cannot load a binary file, only text. You will need to use a 3th party component.
这篇关于使用Response.BinaryWrite显示JPEG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文