If I would be you then I wouldn’t try to handle it during the editing process. Your own “Insert Picture” dialog might be easy to do, but a copy/paste of html would still require you to parse html syntax … so you might as well do that at the end of the editing in your “save” button by parsing the html for new and deleted files.

 

Kind Regards,
Stefan Mueller



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul A Norman
Sent: Tuesday, 23 May 2006 6:31 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] The Programmer's Grail? Streaming Twebbrowserordescendantto DB Blob and back

 

Its pretty good all rright.

 

Especially from the perspective of re-editing the streamed 'files'

 

Just have to handle introduction of new images in a custom insertion routine, and editing of existing images.
 

I looked at an earlier example of the same unit, from the old Euromind.Delphi site (now just closed) which was still focussed on the MHT approach.

 

Still would like to know if those interface can give me the design layer of TwebBrowser for streaming! Would be even better!

 

This will certainly do the job.

 

Paul
 

On 23/05/06, Stefan Mueller <[EMAIL PROTECTED]> wrote:

Yes .. the demo source (link at the end of the article) should be pretty much self explaining .. it streams html & pictures directly from blob fields in a paradox table when internet explorer requires them (using IStream interfaces, not files) – what else do you need?!

 

Kind Regards,
Stefan Mueller


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul A Norman
Sent: Tuesday, 23 May 2006 5:44 p.m.


To: NZ Borland Developers Group - Delphi List

Subject: Re: [DUG] The Programmer's Grail? Streaming Twebbrowser ordescendantto DB Blob and back

 

Exploring the line that you have ginve me Stefan, I would then keep a seperate table of images and handle calls for them in the Name space handler?

 

Paul

 

On 23/05/06, Stefan Mueller < [EMAIL PROTECTED]> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 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
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

 


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

 

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to