BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMemoryStream (Blob Field from a DB) to NodeValue using TXML

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
M.Pannier
Guest





PostPosted: Fri Aug 25, 2006 5:01 pm    Post subject: TMemoryStream (Blob Field from a DB) to NodeValue using TXML Reply with quote



How can I store a MemoryStream in a NodeValue of an TXMLDocument?

regards
M.Pannier
Back to top
Eddie Shipman
Guest





PostPosted: Fri Aug 25, 2006 9:33 pm    Post subject: Re: TMemoryStream (Blob Field from a DB) to NodeValue using Reply with quote



M.Pannier wrote:

Quote:
How can I store a MemoryStream in a NodeValue of an TXMLDocument?

regards
M.Pannier

Make sure you insert a CDATA Section element type and store it in there.

--
Back to top
M.Pannier
Guest





PostPosted: Mon Aug 28, 2006 4:28 pm    Post subject: Re: TMemoryStream (Blob Field from a DB) to NodeValue using Reply with quote



How?

XMLDocument.DocumentElement.AddChild('TEST').NodeValue := MemoryStream?


"Eddie Shipman" <mr_delphi_developer (AT) nospamyahoo (DOT) com> schrieb im Newsbeitrag
news:xn0eqe3ol1e5svw000 (AT) forums (DOT) borland.com...
Quote:
M.Pannier wrote:

How can I store a MemoryStream in a NodeValue of an TXMLDocument?

regards
M.Pannier

Make sure you insert a CDATA Section element type and store it in there.

--
Back to top
Mike Shkolnik
Guest





PostPosted: Tue Aug 29, 2006 1:52 am    Post subject: Re: TMemoryStream (Blob Field from a DB) to NodeValue using Reply with quote

Use the createCDATASection method:

strStream := TStringStream.Create(nil);
try
strStream.CopyFrom(yourMemoryStream, 0);
oCDataSection := XMLDocument.createCDATASection(strStream.DataString);
finally
strStream.Free;
end;
XMLDocument.DocumentElement.appendChild(oCDataSection);

--
With best regards, Mike Shkolnik
E-mail: mshkolnik (AT) scalabium (DOT) com
WEB: http://www.scalabium.com

"M.Pannier" <Pannier@unitel-Buerosysteme.de> wrote in message
news:44f2d36f (AT) newsgroups (DOT) borland.com...
Quote:
How?

XMLDocument.DocumentElement.AddChild('TEST').NodeValue := MemoryStream?


"Eddie Shipman" <mr_delphi_developer (AT) nospamyahoo (DOT) com> schrieb im
Newsbeitrag
news:xn0eqe3ol1e5svw000 (AT) forums (DOT) borland.com...
M.Pannier wrote:

How can I store a MemoryStream in a NodeValue of an TXMLDocument?

regards
M.Pannier

Make sure you insert a CDATA Section element type and store it in there.

--


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.