Re: Displaying HTML from memory



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
>>
>>
>>
>
>


.



Relevant Pages

  • Displaying HTML from memory
    ... I have many short HTML files stored in a binary stream storage to display ... I could display HTML data by first saving memory stream ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Using SQl to store aspx pages and memory problems
    ... and this returns text formatted in HTML - this can simply sent back to the ... some server specific information into its html text - say the server name - ... >> the compiling time would still be there and so would the memory issues. ... >> it takes to display them. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web content in delphi
    ... I need to stick some web content (HTML held in memory) on a form and display it to the user. ... What I'm wondering is if there are any other components like TWebBrowser out there. ...
    (borland.public.delphi.thirdpartytools.general)
  • Web content in delphi
    ... I need to stick some web content (HTML held in memory) on a form and display it to the user. ... What I'm wondering is if there are any other components like TWebBrowser out there. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: urllib2.urlopen(url) pulling something other than HTML
    ... I get the idea that we're allocating some memory that looks like a ... Don't worry too much about memory. ... HTML, when the .writemethod is called on the StringIO instance. ... of the documentation: ...
    (comp.lang.python)