简体   繁体   中英

Read Multiple files from Single Stream

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM