Why would you want to use XML for that? XML imposes quite a lot of
restrictions on the content, such as for example, it may not contain certain
bytes or byte sequences, whilst these restrictions may not necessarily apply
to the files you want to transfer. Generally there are three ways of sending
files from flash: using FileReference (or FileReferenceList), using
NetConnection or using Socket. The choice depends on what in particular you
are trying to achieve.
Filereference resembles the API you have in HTML with few differences
regarding what headers you may send and having an option to monitor the
upload process.
NetConnection may send even fewer headers, on the other hand it may allow
you for somewhat better control of the data transfer (you may send it in
chunks and backup parts of it if needed).
Socket would allow you to implement other transfer protocol based on TCP,
such as FTP for example.

Best.

Oleg

Reply via email to