Read Multiple files from Single Stream

1.5k Views Asked by At

In my applet, I am having One Stream that contains a number of XML files. Now i am sending this stream to server side and i want to retrieve those multiple files from that Stream.

I can do the same by making a zip file of multiple XML files in my applet code and then writing it to Stream and then on the server side make a zip file from Stream and unzip it.

But i don't want this.Is there any other way to do it?

1

There are 1 best solutions below

6
arcy On

use your own XML tags to delimit the files:

<file name="directoryA/folderB/filename">
</file>

and put the XML for the file itself inside those tags. Make the tag name more elaborate if you're worried about "file" being used within the XML.