开发者

Can you write to a socket from disk without loading the data in question into memory first?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜