Re: [flexcoders] Class Socket

2007-10-26 Thread Abdul Qabiz
Hi,

You can read and write data (file content) using Socket. If you are talking
about a scenario, where you want user to choose a file using FileReference
dialogue box and send the file over socket, that's wouldn't work in Flex
apps running in Flash Player. AIR apps can read file content and do whatever
they want to...

Anyway, once you get the reference of file (assuming it AIR app), you can
read the data in ByteArray and send the data over Socket.

Sorry no code here... FYI! We are using socket in as3httpclient (
http://code.google.com/p/as3httpclient), which allows HTTP File Upload.
Check  out the code, it might help.

-abdul

On 10/25/07, Hugo carvalho [EMAIL PROTECTED] wrote:

   Hi,

 someone could give an example of how to send a file (Not text) using
 socket.

 Thanks in advance,

 []!

 http://livedocs.adobe.com/flex/201/langref/flash/net/Socket.html
 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/S...

  




-- 
-abdul
---
http://abdulqabiz.com/blog/
---


[flexcoders] Class Socket

2007-10-24 Thread Hugo carvalho
Hi,

someone could give an example of how to send a file (Not text) using
socket.

Thanks in advance,

[]!

http://livedocs.adobe.com/flex/201/langref/flash/net/Socket.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/S...