I have a string that is the contents of a tar.gz compress file (the filename would be tar.gz if there was one). It's passed to me in JSON and the string is base64 encoded.
I've managed to decode the string from base64, and now am left with a tar.gz string. Does anyone know of a way for me to extract this to memory WITHOUT creating a temp file and then using system('tar -zxvf ...')? It think it would really be a waste of resources to do so, however if I cannot figure it out, I suppose I'll have to create a file and use system().
There is only ever one file inside (xml file) so its not multiple files.