Changeset 36108
- Timestamp:
- 12/09/09 23:02:33 (4 years ago)
- Location:
- platform/air/Whony
- Files:
-
- 4 modified
-
WasserClient-app.xml (modified) (1 diff)
-
lib/as3httpclientlib-1_0_5.swc (modified) (previous)
-
src/model/TimeLineUtil.as (modified) (1 diff)
-
src/net/APIPostThread.as (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/air/Whony/WasserClient-app.xml
r35391 r36108 2 2 <application xmlns="http://ns.adobe.com/air/application/1.5"> 3 3 <id>com.seacolorswind.wasser.Whony</id> 4 <version>2009 0914b</version>4 <version>20091209</version> 5 5 <filename>whony_trunk</filename> 6 6 <initialWindow> -
platform/air/Whony/src/model/TimeLineUtil.as
r35680 r36108 148 148 } 149 149 150 return htmlStrings.join( );150 return htmlStrings.join(""); 151 151 } 152 152 /** @private */ -
platform/air/Whony/src/net/APIPostThread.as
r35681 r36108 33 33 import flash.filesystem.FileStream; 34 34 import flash.net.URLRequest; 35 import flash.net.URLRequestHeader; 35 36 import org.httpclient.http.multipart.Part; 36 37 import org.httpclient.http.Post; … … 80 81 var parts:Array = new Array(); 81 82 for (key in param) { 82 if (key != "image") { 83 parts.push(new Part(key, param[key])); 84 } else { 85 /* var fileStream:FileStream = new FileStream(); 86 fileStream.open(File(param[key]), FileMode.READ); 83 if (key == "image") { 84 var image:File = File(param.image); 85 var fileStream:FileStream = new FileStream(); 86 fileStream.open(image, FileMode.READ); 87 87 var imageBytes:ByteArray = new ByteArray(); 88 88 fileStream.readBytes(imageBytes); 89 parts.push(new Part("file", imageBytes, "image/png", [ { name:"filename", value:"img.png" } ], "binary")); 90 */ } 89 imageBytes.position = 0; 90 parts.push(new Part("image", imageBytes, "application/octet-stream", [ { name:"filename", value:image.name } ], "binary")); 91 } else { 92 parts.push(new Part(key, param[key])); 93 } 91 94 } 92 95 _request.setMultipart(new Multipart(parts));
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)