Take the 2-minute tour ×

I'm building a mobile AIR application that connects to my desktop AIR application. In the mobile application, I'm recording video with my Android device with flash.media.CameraUI.

This works perfectly, but now I'd like to send this file to my desktop application so I can do stuff with it. I've got a server written in AS3 running on my desktop (the application itself) listening to AMF messages on a certain port. I can send data through sockets, I've already tested it with accelerometer data, so that's not the issue.

What would be the best way to send video to my desktop AIR app? I've tried multiple things already; serializing using registerClassAlias, ByteArrays, ...

Any help is much appreciated, or just a push in the right direction to get me started. Thanks!

share|improve this question

2 Answers 2

Have you tried running a socket server on the desktop app and connecting to it from the phone, then send using a socket, writing and reading bytes?


share|improve this answer
Hi Zárate, that's exactly what I'm trying! I'm getting end of file error every time I'm reading the object, though... I'm using a temporary workaroud now, uploading every file (~350kB each) to my webserver using a PHP script and downloading again on the desktop application. This is no good solution of course. :-( –  Nick Dec 14 '11 at 13:04
up vote 0 down vote accepted

Just asked my teacher. He said I needed a way to upload it, so my PHP solution IS the best way to do it. Thanks anyway, Zárate.

share|improve this answer

Your Answer


