Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:14:36+00:00 2026-05-26T04:14:36+00:00

XHR2 differences states The ability to transfer ArrayBuffer, Blob, File and FormData objects. What

  • 0

XHR2 differences states

The ability to transfer ArrayBuffer, Blob, File and FormData objects.

  • What are the differences between ArrayBuffer and Blob ?
  • Why should I care about being able to send them over XHR2 ? (I can understand value of File and FormData)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:14:37+00:00Added an answer on May 26, 2026 at 4:14 am

    This is an effort to replace the old method which would take a “string” and cut sections of it out.

    You would use an ArrayBuffer when you need a typed array because you intend to work with the data, and a blob when you just need the data of the file.

    Blobs (according to spec anyway) have space for a MIME and easier to put into the HTML5 file API than other formats (it’s more native to it).

    The ArrayBuffer lets us work with typed arrays which is much faster than string manipulation to work with specific bytes and lets us define what type the array segments actually are. Since JavaScript is not strictly typed, it’s hard to take a file that might be broken into an array of 32bit ints or perhaps 64bit floats (just imagine 8 bit ints– that’d be a nightmare in terms of performance with string manipulation and bitwise calculations, especially with unicode).

    As far as I can tell you can always move a blob to an array buffer or to a string representation, but this being native to XHR allows scripts to be faster which is the main advantage.

    I’d use a blob for working with the file API, but I’d use the array for preforming computation on the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If XHR2 is supported with file-upload capabilites, my application needs to do different preparation.
function nicktoid(nick){ if (typeof nick == String) { var u = http://xxxxxx.xxxx/ + nick
I have a code that works great on iPhone, but when it comes to
I am working on one project and I am using JavaScript code to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.