views:

15

answers:

1

Using the Socket API in AIR to write a large file to a server, is there a way to do this without reading the file into application memory first? I am using FileStream to store the data in a bytearray and then writing that bytearray to the server through the socket but can I just have something like a file descriptor that references that file on the user's disk and have the socket write from there?

A: 

Many systems implement sendfile(2). I doubt though you'd have access to it in Flex.

Nikolai N Fetissov