title: PHP: http raw POST data contain BINARY
body: <p>i have a device that send POST data to my server.
  so <strong>print_r($_POST)</strong> is empty, i can see the data only when i run this</p>
  
  <pre><code>$content = file_get_contents('php://input');
  var_dump($content);   
  
  //or i can use:  print_r($content);
  </code></pre>
  
  <p>i save those to a file and result are some json and BINARY DATA (CHECK IMAGE)<a href="https://i.stack.imgur.com/s1tyv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s1tyv.png" alt="SCREENSHOT"></a></p>
  
  <p>if i add code like this <strong>json_decode($content,true);</strong> i dont see anything</p>
  
  <p>so how can i decode binary or what can i do to decode the json and also see what data is send in binary?</p>