Hi All ,i need to process the xml file by making it split .can anyone of u suggest the process to split .Thankskumar
What do you mean by “split”? Do you want to break the file into smaller files for easier transport? Or do you mean, splitting the contents of the file into different elements?
Please clarify what your requirements are so we can assist you
Regards,
Aditya
i want to break the file into smaller files for easier transport
If that’s the case, you’ll probably need to do something like this:
- pub.file:getFile (as stream)
- REPEAT (on success)
2.1 read the stream into smaller byteArray (define a chunk size e.g. 512000 bytes)
2.2. if(chunk number < totalChunkNumber) then continue processing
else file has been completely split and exit repeat.