Streaming Image data to an image viewer

J

Jerry J

I have a third party image viewer that can display various
types of images. The image viewer is ActiveX and lives
inside of Internet Explorer.

To get the image viewer to retrieve an image, java script
on the client looks something like this:

VIEWER.GetImage("http://www.url.com/SomeImage.jpg")
VIEWER.GetImage("http://www.url.com/SomeImage.tif")

Instead of doing the above, I want to have the image
viewer always hit the same web page as in this:

VIEWER.GetImage("http://www.url.com/ImgStreamingFrm.aspx")

ImgStreamingFrm would stream the image data out something
like this:

Response.Clear()
Response.ContentType = "image/tif"
Response.WriteFile("C:\theImage.tif")

The above doesn't work, I believe because the imageviewer
uses the extension such as 'jpg' or 'tif' to know what
kind of image to expect.


Can someone give me a suggestion here?

Jerry J
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top