I am working with big data, and I want to send a sequence of numbers fast and store it efficiently now I have found I can do this via ascii codes for example a set of numbers for example : [1,1,1,6,5,6,8]
I can simply encode it to oAD ? ascii codes : [111, 65, 68] to store it efficiently, however when I try to decode this, this seems to be distorted because I do not know the length and from time to time, I get 0s, and double digit numbers now I tried adding seperators like 0 but for example you cannot encode 014 because this just turns to 14 without zeroes, and I tried using a 1 but this seems very complicated for example I have [111, 112] with a 1 seperator would look like 1111112 how would I know if it's 1,1,1,1,2 - 11,11,12 or 111,112.
What are some clever ways to achieve this?