Application of AS3 breakpoint continuous transmission

Source: Internet
Author: User

Objective
Use the Filereference.load () method supported by FP10 to get local data. Then use ByteArray to divide the data into small chunks of the specified size. Upload separately
.. To achieve the function of the breakpoint continued to pass.

Analysis
Step one: Load the file (Filereference,filereference.load ())
Step two: Request the amount of uploaded data to the server (file ID, urlloader)
Step three: Start uploading from the returned data location.

Effect

PS: Because the server only uses the name + size for identification. So upload the same file after uploading is prompted to upload, another space limit ~ only to keep the last 10 files ~




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.