I have a chunk of data coming from an ajax call. I need to split this chunk up into smaller chunks of a predefined amount, not by a delimiter character, but by an amount. 2k is what I would like. I am trying to come up with a snippet that would bit shift divide the data, and place each chunk including the remaining data into arrays. So if the original chunk is 1 meg, then I would have chunk[0]=2k
of data, chunk[1]=next 2k
of data..... and so on until there is no more data to assign.
Thanks Pat