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?
Many systems implement sendfile(2)
. I doubt though you'd have access to it in Flex.
精彩评论