但我传不了呀,服务器端不认,
怎么传呢,我是客户端:
$file="./2004.jpg";
$handle = fopen ($file, "rb");
$contents = fread ($handle, filesize ($file));
$info['action']['data']=$contents;服务器端定义的是
'data'=>array('name'=>'data','type'=>'xsd:binary'),??
谢谢
怎么传呢,我是客户端:
$file="./2004.jpg";
$handle = fopen ($file, "rb");
$contents = fread ($handle, filesize ($file));
$info['action']['data']=$contents;服务器端定义的是
'data'=>array('name'=>'data','type'=>'xsd:binary'),??
谢谢
$file="./2004.jpg";
$handle = fopen ($file, "rb");
$contents = fread ($handle, filesize ($file));
$info['action']['data']=base64_encode($contents);反正我是这么用的,没有问题。