Re: Displaying HTML from memory
- From: "Tomaz Koritnik" <nospam@xxxxxxxxxx>
- Date: Wed, 8 Jun 2005 18:33:13 +0200
Hi
Thanks but I know that IE browser does not support displaying HTML files
from memory. IIS is out of the questione and I still don'w want to save HTML
to temporary file :). That's why I'm trying to find some other HTML
displaying component that can do this because I don't know if there are any.
Do you know?
regards
Tomaz
"Stoitcho Goutsev (100) [C# MVP]" <100@xxxxxxx> wrote in message
news:%23MPYH6DbFHA.3144@xxxxxxxxxxxxxxxxxxxxxxx
> Tomaz Koritnik,
>
> The web browser expects an URL that could be a file or a URL for a
> internet resource that is served by some web server. There is no way that
> you can pass a memory stream. Of course it depends on the web browser
> control. If you use some special control that accepts that then go for it.
> If you are using control like IE what you can do is to create a simple
> ASP.NET application with a single page. This page can read the name of the
> web page, you want to display, as a parameter. The ASP.NET page then can
> read the stream and flush its contents to the HttpRespond.Output stream.
>
> For this solution though you need IIS running on the machine. However,
> easiest solution would be to save the stream in a file and point the
> borwser to it.
>
> HTH
> Stoitcho Goutsev (100) [C# MVP]
>
>
> "Tomaz Koritnik" <nospam@xxxxxxxxxx> wrote in message
> news:d86egm$kl$1@xxxxxxxxxxxxxxxxxx
>> Hi
>>
>> I have many short HTML files stored in a binary stream storage to display
>> descriptions for various items in application. HTML would be display
>> inside
>> application using some .NET control or COM control (like Microsoft
>> WebBrowser). For each description there is one HTML file and along
>> description text, it contains links to related information. Clicking
>> related
>> information would for example open new form in application and display
>> some
>> list of items from DB.
>>
>> When I load HTML data from stream storage, it is stored in memory inside
>> memory stream. I could display HTML data by first saving memory stream
>> contents in a temporary file and then instruct browser control to load
>> from
>> that file, but I absolutely don't want to use temporary files in this
>> process. I want to display HTML data directly from the memory stream (or
>> some other form of memory storage). Is there any control available for C#
>> that can display HTML data directly from memory?
>>
>> regards
>> Tomaz
>>
>>
>>
>
>
.
- Follow-Ups:
- Re: Displaying HTML from memory
- From: Stefano \"WildHeart\" Lanzavecchia
- Re: Displaying HTML from memory
- References:
- Displaying HTML from memory
- From: Tomaz Koritnik
- Displaying HTML from memory
- Prev by Date: Re: Can I safely add rows to a DataTable in non UI thread?
- Next by Date: Re: Can I safely add rows to a DataTable in non UI thread?
- Previous by thread: Displaying HTML from memory
- Next by thread: Re: Displaying HTML from memory
- Index(es):
Relevant Pages
|