Flex中的CSV文件上载

时间:2009-11-17 04:01:17

标签: flex

如何在flex中将csv文件上传到java类?

1 个答案:

答案 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);