如何在flex中将csv文件上传到java类?
答案 0 :(得分:3)
//the following code will post your csv string to the url specified by serverUrl
var loader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest(serverUrl);
req.data = csvString;
req.method = URLRequestMethod.POST;
loader.load(req);