I want to send files data from Java to PHP and then the php saves the data to a file . here's my code : the java code :
byte[] data=...
str = new String(data,"ISO-8859-1"); //convert data to String .
// send(str);
and here's the php script:
$data = // get the data from java .
fwrite($fr1,$data);
the problem is that this script work only with text files and not for image files and Zip files . how can I solve that ?