Re: getStream() method in XmlPullParser

Joerg Pleumann <[email protected]> Mon, 06 Oct 2003 09:30:59 +0200
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
Hello Dimuthu (et. al),

> Consider this situation. There is a base-64 encoded image in a xml file. If
> the image is quite large (say 100k,1000k range),  it would be quite a
> lengthy string. I would have to call getText( ) that returns this image as a
> stream. Ideally what I would like is to get a stream. Especially this would
> be very handy if I want to parse a soap message.

Since you seem to be using SOAP for transferring binary data, you might 
want to consider an alternative: I have a pretty small implementation of 
SOAP with attachments based on XmlPull/KXML. It allows you to transfer a 
multipart message consisting of a main SOAP part and an arbitrary number 
of binary attachments. The XML part doesn't get bloated, since the 
binary data is in the attachments. Elements in the SOAP part can refer 
to the attachments via href. The code might not yet be 100% stable, but 
I already use it in a number of projects. It works nicely so far and 
even operates with the latest Web Services package from Sun (which also 
supports SOAP with attachments).

I thought I could contribute it to XmlPull/contrib or so when it's 
ready. If you're interested, I can send you the current source.

Regards,

Jörg


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/2U_rlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/