0
我寫在我與文件上傳多值碼,我的代碼行低於:上傳多值
final InputStream gpxInputStream = new ByteArrayInputStream(
RecordedRouteGPXFormatter.create(recordedGeoPoints).getBytes());
final HttpClient httpClient = new DefaultHttpClient();
final HttpPost request = new HttpPost(UPLOADSCRIPT_URL);
// create the multipart request and add the parts to it
final MultipartEntity requestEntity = new MultipartEntity();
InputStreamBody isb = new InputStreamBody(gpxInputStream, "uploadedFile");
requestEntity.addPart("uploadedFile",isb);
但在該行「requestEntity.addPart(」 UploadedFile的」,ISB) ;」我得到無法解析類型org.apache.james.mime4j.message.AbstractBody。它是從所需的.class文件間接引用的語法錯誤。請幫我解決這個問題。
Right Bro。獲得解決方案 – 2013-08-22 10:03:38