php服务端

function uploadImages($name, $content) {
    file_put_content("/var/www/upload/images/". $name, $content);
} 

android客户端

byte[] cjk = ...;//图片二进制流 
client.invoke("uploadImage", new Object[] { "XXX.png", cjk }, ....);

Post Navigation