如何在服务器中使用volley上传文件

时间:2016-03-20 14:32:19

标签: android android-volley

  1. 可以将Pdf或Txt这样的图像转换为二进制并发送吗?
  2. 可以发送文件而不转换为二进制并发送?以及如何工作!
  3. 如何使用线程将2或3个文件上传到服务器?
  4. 我使用$sql = mysql_query("SELECT * FROM upload WHERE country='singapore' "); while ($row = mysql_fetch_array($sql)) { $country = $row['country']; $lat = $row['lat']; $long = $row['long']; $array = array($country ,$lat, $long); foreach ($array as $value) { $array[] = $value; } $value = '[{"id":"36","latitude":"'.$array[1].'","longitude":"'.$array[2].'","username":"User Name 1","country":"Srbija","city":"'.$array[3].'","cityPart":"Grbavica","street":"","price":"200","area":"40","images":"img\/testimg.png[split]img\/testimg.png[split]img\/testimg.png","furniture":"Yes"}]'."<br>"."<br>"; } $db = json_decode($value, true); for( $i = 0; $i < sizeof($db); $i++) { print_r ($data = $db[$i]); } ,但我认为应该存在更好的方法。 谢谢你的帮助!

0 个答案:

没有答案