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.
Actually echo
is not able to print the data properly. So, please, does anyone know how to handle binary data?
??u????P?)??v?3Su???u?{?K-0 ??BD?????>??i8f???R??R
#h????.?VMa???RI?c?0^???ZP?*'?y??????a2??6LJlw????zP?LQ{-铜??)J???9 ?@?
??E?szA????EU???gi?.g=,9??@???IJ??#?j????/~vͼ?lFC,?A\X-?J?p??dr8????DQ??? ?BঌG????i?Zu????A//k(-??i?K?I?14\n #~C?ǡ#@?i?<? – MDThakkar Nov 26 '13 at 6:27