Yeah the question is why do you need it in text form. Png is already a compressed format, and is pretty much guaranteed to be smaller.
Otherwise I think a better solution would be to paste sprites into Drawing Canvas, and save that image into a Tiled Background object. You can animate it via x, or y offset.(as an alternative to trying to load to frames)