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 

JPEG to XML

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





PostPosted: Thu May 12, 2005 12:49 pm    Post subject: JPEG to XML Reply with quote




How to save jpeg in a XML-file with the help of component TXMLDocument?
Back to top
Mike Shkolnik
Guest





PostPosted: Thu May 12, 2005 2:11 pm    Post subject: Re: JPEG to XML Reply with quote



Quote:
How to save jpeg in a XML-file with the help of component TXMLDocument?
Save in CDATA tag

This type is for any binary data

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com



Back to top
Nils Haeck
Guest





PostPosted: Sat May 14, 2005 5:37 pm    Post subject: Re: JPEG to XML Reply with quote



I'm not sure this is true, CDATA is intended for textual data. If the binary
data e.g. contains #0 things go wrong. Also, the binary data may
accidentally contain the ]]> (chance is length/256*256*256 but still rather
big).

It's much better to encode the binary data as BASE64 and then just add it to
a normal element.

Nils Haeck
(author of NativeXml)
www.simdesign.nl/xml.html


"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> schreef in bericht
news:428363d1$1 (AT) newsgroups (DOT) borland.com...
Quote:
How to save jpeg in a XML-file with the help of component TXMLDocument?
Save in CDATA tag
This type is for any binary data

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com





Back to top
Jonas Gunnarsson
Guest





PostPosted: Mon May 16, 2005 4:42 pm    Post subject: Re: JPEG to XML Reply with quote

Hi,
I recomend to use the "hexBinary" or "base64Binary" type to store
picturedata.

Do a search on <http://www.w3.org/> with "xml schema picture binary"

See: Example 2: Schema declaring an element with
binary content and expected media type of "image/jpeg" or
"image/png"
<http://www.w3.org/TR/xml-media-types/>

Best regards
/Jonas

Oleg skrev:
Quote:
How to save jpeg in a XML-file with the help of component TXMLDocument?

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.