0
Adobe Air APIのHTTPServiceクラスを使用して、データのバイト配列をHTTPボディとして送信する必要があります。誰も私にこれを行う方法を提案することはできますか?Adobe AirでHTTPServiceクラスを使用してHTTPボディを設定する
Adobe Air APIのHTTPServiceクラスを使用して、データのバイト配列をHTTPボディとして送信する必要があります。誰も私にこれを行う方法を提案することはできますか?Adobe AirでHTTPServiceクラスを使用してHTTPボディを設定する
この
var encodedString : String = Base64.encode(imageByteArray);
var service : HTTPService = new HTTPService();
service.method = "POST";
service.contentType = 'application/x-www-form-urlencoded';
service.url = 'http://www.mydomain.com/upload.php';
var variables : URLVariables = new URLVariables();
variables.imageArray = encodedString;
variables.variable2 = "some text string";
variables.variable3 = "some more text";
service.send(variables);
のBase64クラスは
http://code.google.com/p/jpauclair-blog/source/browse/trunk/Experiment/Base64/src/Base64.as