s to the class i.e. a map and a image then you will need to read and output the bytes of each file sequentially into a new file. this new file will likewise need the magic number extra 2 bytes of || at the beginning.You will of course need to then read the embedded data in your class in the same order as you appended the data files into one.