I am trying to split a file (a video/image) into pieces of 100kb size and then trying to join them back to make the original file. I have a code which splits and joins but I am not getting the same image back. Here's the code, it's pretty long but I present it in entirety. Can anyone please help?