Send image over GPRS

Ok I got this buffer:

71%73%70%56%57%97%50%0%50%0%247%0%0%150%140%115%102%94%69%198%187%159%123%114%90%71%71%71%138%129%101%202%193%166%201%193%172%238%234%221%200%197%188%140%135%122%211%201%171%67%59%38%235%229%209%250%250%250%229%228%226%166%157%131%134%126%103%193%180%142%228%220%198%130%130%130%225%221%209%227%221%202%228%218%188%245%241%230%38%37%37%156%145%115%248%243%228%195%185%157%211%202%180%74%66%42%209%198%162%108%98%70%234%230%219%187%179%156%219%211%187%92%84%61%241%238%230%220%218%211%231%228%220%206%194%159%248%246%242%118%108%83%252%251%249%233%225%202%23%19%9%103%77%0%248%244%232%220%211%181%243%236%214%128%116%82%253%251%246%33%29%18%176%163%125%252%252%251%220%213%192%238%236%233%187%174%138%162%148%108%109%102%84%131%127%117%181%172%145%211%

And I managed to send to have the same buffer on my NodeJS, the problem is to convert these bytes into a file, I tried to use a convert but I am able to have an exactly copy, the header is kind of the same.
The image is a GIF and I can have the same first few letters: GIF89a2

There is a special converter to recreate the file?