![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Schema to express fixed length fields within a tag. >Thread Next - will use of substitution groups increase use range of xsi:type? Re: Image information in XMLTo: "Shashikala Shamarao" <shashikala_shamarao@-----.--->, <xmlschema-dev@--.---> Date: 9/28/2005 9:24:00 AM
Hi Shashi,
The normal approach is to base64 encode binary data
(http://www.faqs.org/rfcs/rfc3548.html) (or hex encode). This does result
in some data expansion though. Every 3 bytes will be turned into 4. I
don't know of any other solution that would work with a standard XML parser,
although some multiple file / out of band technique may work.
Pete.
----- Original Message -----
From: "Shashikala Shamarao" <shashikala_shamarao@y...>
To: <xmlschema-dev@w...>
Sent: Wednesday, September 28, 2005 12:06 AM
Subject: Image information in XML
> Hi,
>
> Currently I am stuck with a problem realted to image in XML.
>
> I want to know how can I send image information in XML like below.
>
> My XML response should look like:
>
> <Results>
> <Result>
> <attributes></attributes>
> <image>contains binary data</image>
> </Result>
> <Result>
> <attributes></attributes>
> <image>contains binary data</image>
> </Result>
> <Result>
> <attributes></attributes>
> <image>contains binary data</image>
> </Result>
>
>
> </Results>
>
> I looked at multipart MIME, these define a boundary at the begining say
> "bounary1" and at the end of every content whose mime type is different,
> boundary will be defined. What I am wondering is, is it possible to define
> boundary for each element <Result>, so I can send the bit by bit
> information to the parser instead of waiting for the whole document to be
> created in memory and then sending it to parser?
>
> Any answers would be appreciated.
>
> Thanks in advance
> Shashi
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
for XML to C++ data binding visit
http://www.tech-know-ware.com/lmx
(or http://www.xml2cpp.com)
=============================================
From mike@s... Wed Sep 28 08:32:02 2005
Received: from maggie.w3.org ([193.51.208.68])
by fri | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
