G
Guest
I have developed a standard .NET control which displays medical images and
works fine in applications, but increasingly, my customers are wishing to use
it in an ASP.NET environment, so I am looking to make a WebControl based
equivalent. [If I'm missing something important, and there is a way to use
my "normal" control, then please stop me at this point and tell me how!]
So, assuming that I need to render using HTML - how can I pass "bitmap" data
into such a control for it to be displayed. I'm open to all possible routes,
but I've not yet found one which works. Ideas I have considered include:
1) Putting the data into an <Object> - base 64 encoded, and referencing from
a standard <IMG> tag. I'm told that this works in other browsers, but it not
supported by IE, which most of my customers use.
2) making a huge "table" to specify the image as one pixel = one cell.
Obviously it would work, but would be huge!
3) Using a standard IMG tag, and somehow referencing the control through a
special URL which would cause the control to return the required bitmap as
JPG, BMP etc. This should be the best (I guess) but I have no idea how to
wire the IMG and the supporting service, especially in a way which will be
transparent to my users!
IS there are way to do this, or is it a glaing hole in the whole
"CodeBehind" scheme?
works fine in applications, but increasingly, my customers are wishing to use
it in an ASP.NET environment, so I am looking to make a WebControl based
equivalent. [If I'm missing something important, and there is a way to use
my "normal" control, then please stop me at this point and tell me how!]
So, assuming that I need to render using HTML - how can I pass "bitmap" data
into such a control for it to be displayed. I'm open to all possible routes,
but I've not yet found one which works. Ideas I have considered include:
1) Putting the data into an <Object> - base 64 encoded, and referencing from
a standard <IMG> tag. I'm told that this works in other browsers, but it not
supported by IE, which most of my customers use.
2) making a huge "table" to specify the image as one pixel = one cell.
Obviously it would work, but would be huge!
3) Using a standard IMG tag, and somehow referencing the control through a
special URL which would cause the control to return the required bitmap as
JPG, BMP etc. This should be the best (I guess) but I have no idea how to
wire the IMG and the supporting service, especially in a way which will be
transparent to my users!
IS there are way to do this, or is it a glaing hole in the whole
"CodeBehind" scheme?