开发者

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

开发者 https://www.devze.com 2023-01-12 08:30 出处:网络
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

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

精彩评论

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