Hello Mr.Cyber,
A user control can manipulate the page's html output, add some tags etc.,
but cannot attach another resource other than pure html. In fact, HTML is
a text only world, where you define layout, content and resource references,
not the resource itself.
Having said that, your control can tell the page to look somewhere for a
specific image but it can't just output the image with the page.
Write another ascx or aspx, make them accept a parameter or two to get the
stream you are looking for, have it response the image into the response
stream, and add a reference to them in ucParsedPNG's output.
Something like <img src="foo.aspx?imgid=1">
...and somewhere in foo.aspx:
this.Response.Clear();
this.Response.ContentType = "image/png"; // not sure about the mime type
for png
imageFromStream.Save(this.Response.OutputStream, _type);
//...dispose as necessary
I guess it should be something like this. Hope this helps.
Gokhan Altinoren
gokhan[RMV_this][at]altinoren[also_RMV_this][dot]com
http://altinoren.com
> Hi, brothers :)
>
[quoted text clipped - 21 lines]
>
> A lot of thanks in advance!!!