By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,650 Members | 1,823 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,650 IT Pros & Developers. It's quick & easy.

Streaming Image data to an image viewer

P: n/a

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
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.