| View previous topic :: View next topic |
| Author |
Message |
M.Pannier Guest
|
Posted: Fri Aug 25, 2006 5:01 pm Post subject: TMemoryStream (Blob Field from a DB) to NodeValue using TXML |
|
|
How can I store a MemoryStream in a NodeValue of an TXMLDocument?
regards
M.Pannier |
|
| Back to top |
|
 |
Eddie Shipman Guest
|
Posted: Fri Aug 25, 2006 9:33 pm Post subject: Re: TMemoryStream (Blob Field from a DB) to NodeValue using |
|
|
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
|
Posted: Mon Aug 28, 2006 4:28 pm Post subject: Re: TMemoryStream (Blob Field from a DB) to NodeValue using |
|
|
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
|
Posted: Tue Aug 29, 2006 1:52 am Post subject: Re: TMemoryStream (Blob Field from a DB) to NodeValue using |
|
|
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 |
|
 |
|