I want to extract data returned by a third party web service. The response is parsed by the XmlPullParser
. The block of data is the Base64 decoded TEXT
of a single element. So far, my parser contains the code:
assert eventType == XmlPullParser.TEXT;
content = xpp.getText();
The content
is the mentioned block of data. It works, but it can be 100+ kBytes long. I need to parse the content using another parser that would:
Decode the block of data encoded via base64. The result is the image of a zip file with a single zipped file inside.
Extract the content of the zipped file -- it is in CSV format.
Parse the lines of the CSV file and extract the data.
If I know the name of the file in the zip archive image, is it possible to process it on the fly using Android/Java objects? (On the fly -- I mean without storing it into the file first.) Or, how and where can I create a temporary file extracted from the zip file content?