有什么方法可以通过我的 JSON Webservice 发送图像?
这是我的代码,它在特定文件夹中查找新图像并返回一些数据,包括(路径、id 是图像文件的名称和文件的创建时间):
function getAllNewPhotos($lastCHK) {
    $dirPath = 'c:\my_images';
    $files1 = scandir($dirPath);
    $files = array_diff($files1, array('.', '..'));
    $newFiles = array();
    foreach ($files as $file) {
        $createTime = filectime($dirPath . '/' . $file);
        $path_data = pathinfo($dirPath . '/' . $file);          
                if ($createTime > $lastCHK) {
                    $newFiles[] = array(
                        'path' => $dirPath . '\\' . $file,                            
                        'ID' => $path_data['filename'],         
                        'dateImagAdded' => date('Y-m-d H:i:s', $createTime),
                    );
                }
    }
    return ($newFiles);
}
有没有办法将真实图像与我已经通过的其他数据一起发送?
如果您需要更多说明,请告诉我您需要更多说明的部分。
谢谢