OK, thanks for help.
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%23S1ysRfPGHA.3408@TK2MSFTNGP12.phx.gbl...[color=blue]
> No, it isn't possible. The binary output of an image needs to be output in
> it's own request. when you have an img="src.jpg" the browser creates a new
> GET /src.jpg request and the response is sent separately then the
> containing source code. This is how http works and it cannot be changed.
> If you don't want anything else rendered on the page, then you can use the
> main request for the image. But if you want to do something like:
>
> HELLO!
> [IMAGE HERE]
>
>
> the image here needs to be in it's own separate request/response.
>
> For a temporary location you can simply create a new GUID in .NET and use
> that for your filename. These are unique. string fileName =
> Guid.NewGuid().ToString();
>
> Karl
>
> --
>
http://www.openmymind.net/
>
>
>
> "Mirek Endys" <MirekE@community.nospam> wrote in message
> news:eQFHAGdPGHA.720@TK2MSFTNGP14.phx.gbl...[color=green]
>> Thanks for reply, it will be helpful for my other projects.
>>
>> Maybe I have to better explain what I want to do. I created a dll, that
>> contains only one object - HistogramGenerator. The user (developer) can
>> put only two parameters there (SourceImagePath and DestinationImagePath)
>> where... SourceImagePath is Image, you want to analyze and you want to
>> generate its histogram for. DestinationImagePath is path for the
>> histogram image that has been generated from source image.
>>
>> I would like to make it as webcontrol, that is able to live alone,
>> without needings to write the generated histogram picture into disk.
>> Developer will put there only the sourceImagePath and control will
>> generate itself as histogram image.
>>
>> Maybe Im wrong in thinking about possibilities of this technology. My
>> question is: Am I able to show image that I previously generated into
>> memory on the page without needings object asp:image and
>> src="somepage.aspx"??? If yes, what is the best way. If not, is there
>> posibilities to ask IIS server for an temporaly location, that i can use
>> for saving the generated images and I can be sure that this location is
>> writable. (I would like the users of my control have no problems with
>> using of this control)
>>
>>
>> Thanks for help.
>>
>>
>>
>> "Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
>> news:tMI%23LKaPGHA.2484@TK2MSFTNGXA03.phx.gbl...[color=darkred]
>>> Hi Mirek,
>>>
>>> For static resources like text file, script files or images, we can
>>> embed
>>> them into assembly's resource stream(through the embeded resource
>>> compile
>>> option in VS IDE). Then, we can use Assembly.GetXXXStream to get them
>>> at
>>> runtime. Are you using ASP.NET 1.1OR 2.0. For ASP.NET 1.1, since you
>>> will
>>> need to display the image in your webcontrol, we have to provide another
>>> httphandler or page which writeout the image stream so that our
>>> webcontrol's html content can reference it ( src=xxx). If you're using
>>> ASP.NET 2.0, there comes a new feature called embeded webresource and a
>>> built-in webresource.axd handler than can help retrieve resource stream
>>> from assembly, here are some web articles discussing on this:
>>>
>>> #WebResource ASP.NET 2.0 explained
>>>
http://www.codeproject.com/aspnet/MyWebResourceProj.asp
>>>
>>> #Embedding Resources in ASP.NET 2.0 Assemblies
>>>
http://aspalliance.com/726
>>>
>>> Hope this helps.
>>>
>>> Regards,
>>>
>>> Steven Cheng
>>> Microsoft Online Support
>>>
>>> Get Secure!
www.microsoft.com/security
>>> (This posting is provided "AS IS", with no warranties, and confers no
>>> rights.)
>>>[/color]
>>
>>[/color]
>
>[/color]