[DUG] The Programmer's Grail? Streaming Twebbrowser or descendantto DB Blob and back

Paul A Norman paul.a.norman at gmail.com
Tue May 23 17:10:34 NZST 2006


Many thanks Stefan,

I'm still interested if any one has any ideas on what to look for in
TWebBrowser that handles the rendered HTML. The browser can be put into
DesignMode, and objects dragged around the design layer. If access is
available to that layer for streaming in and out it would be a much neater
solution. (That design layer is rendered back as HTML for file saving).

*That layer is what I hope to get a lead in on if possible.*

There are available interfaces that I have not been able yet to find
specifically  relevant materials for e.g. .*IHTMLEditDesigner*

I'm suspecting that I may need to cast TwebBrowser back to *TOleControl* and
that something in there might give me asscess to what I need,

[Delphi] type *TOleControl* = class (Controls.TWinControl, IServiceProvider,
ISimpleFrameSite, IPropertyNotifySink, IDispatch, IOleInPlaceFrame,
IOleInPlaceSite, IOleControlSite, IOleClientSite, IInterface

I'm afloat in a sea of virtual interfaces . . .

Paul

On 23/05/06, Stefan Mueller <muellers at orcl-toolbox.com> wrote:
>
>   Here is a link to a namespace documentation and example sourcecode that
> I used in one of my products:
>
> http://www.bsalsa.com/name_space.html
>
>
>
> … as for reading images out .. the easiest is actually to scan the html
> file for image-tags (don't forget css-links, table backgrounds, etc). You
> will need to do this anyway and replace those linktags with your own
> namespace handler url.
>
>
>
> Kind Regards,
> Stefan Mueller
>
>  ------------------------------
>
> *From:* delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
> *On Behalf Of *Paul A Norman
> *Sent:* Tuesday, 23 May 2006 2:46 p.m.
> *To:* NZ Borland Developers Group - Delphi List
> *Subject:* [DUG] The Programmer's Grail? Streaming Twebbrowser or
> descendantto DB Blob and back
>
>
>
> I am reposting this here, as there are people with expertese who might not
> see it in the other placs I have put it.
>
> And I suspect it opens up an area of great usefuleness beyond Twebbrowser.
>
> I have been looking (as many seem to!) into streaming the content of
> Twebbrowser or TembeddedWB into a data base Blob field, seems to be the
> grail of this kind of programming!
>
> And generally I want to be able to live re-edit the returned material
> in a Twebbrowser window.
>
> Wanting to retain images etc, I have looked at MHT and it seems that it
> is possible to use a NameSpace set up to stream them back to the
>
> browser window once in the DB, but I can find no other way than
> initally saving to disk to get an MHT out of a browser back to the DB
> blob field. I want to avoid using the disk because of the overheads.
>
> So I want to know how I might get a binary representation of the
> actual rendering of the HTML in Twebbrowser into a stream and into a
> blob and back when wanted. NOT as MHT or HTML! As already rendered
> content this stream would be very fast to re-process back into a
> Twebbrowser.
>
> It just seems that there must be something like a TCanvas in the
> Twebbrowser. But a pure TCanvas may not render the 'data' back into the
> browser as edit able material.
>
> ** Is there something in how Twebbrowser renders the HTML, a 'binary
> layer' that can be streamed back and forward?
>
> ** Something that has all the rendered elements and <object> <img> <etc
> ..> as binary available for streaming?
> Is component streaming an sensible avenue?
>
>
>
> i.e. TStream.WriteComponent
>
> Paul
>
>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060523/c9ddde73/attachment-0001.html


More information about the Delphi mailing list