One of the my servers gives me data with
Content-Type: application/binary, i.e data that I am getting looks like some alien data.
Now I need to convert that data into plain data, but I am not aware of any way to do that. I am trying to do this using the command line.
After googling, I found one way: I need to delete the first 10 char and last 8 char from my data and then use
gunzip with that. Then I will get the original data. But when I try to delete those characters, as it is binary output, it cuts more than that or less than 10+8 characters.
echo is not able to print the data properly. So, please, does anyone know how to handle binary data?