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

  • Home
  • SEARCH
  • 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 7498997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:39:56+00:00 2026-05-29T19:39:56+00:00

I am playing with the FileSystem API in Google Chrome 16 but can’t write

  • 0

I am playing with the FileSystem API in Google Chrome 16 but can’t write more than once blob (without reopen the file for appending). Seems like the file is closed after the first write.

For example:

var blob = new WebKitBlobBuilder();
blob.append('one');
fileWriter.write(blob.getBlob('text/plain'));

var blob2 = new WebKitBlobBuilder();
blob2.append('two');
fileWriter.write(blob2.getBlob('text/plain'));

gives a _Uncaught Error: INVALID_STATE_ERR: DOM File Exception 7_

The W3 doc says about FileWriter: “This interface expands on the FileSaver interface to allow for multiple write actions, rather than just saving a single Blob.”

  • 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-29T19:39:57+00:00Added an answer on May 29, 2026 at 7:39 pm

    According to the specification, you are not allowed to use a writer when it’s busy writing:

    write

    1. If readyState is WRITING, throw a FileException with error code INVALID_STATE_ERR and terminate this overall series of steps.

    Since the writer is asynchronous, you have to wait using a callback:

    // write first blob
    
    fileWriter.onwriteend = function() {
      // write second blob
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Playing with the new(ish) url rewriting functionality for web forms, but I'm running into
I need to blindly (i.e. without access to the filesystem, in this case the
Playing with a few tutorials on sockets but struggling to connect. My tomcat server
Playing around with Google Maps these days, with some directions. I have a map
Playing with URLs, more specifically building them incrementally from other, discovered URLs. In doing
I'm wondering if, with the new File API exposed in Chrome (I'm not concerned
Playing with Disqus for commenting, but the problem is that we have a Silverlight
I have been playing with HTML5 Offline web apps and the File API using
Playing with log4net, I have seen the possibility to use a per-thread stack of
Playing around with Python - tkInter - Entry widget - when I use validatecommand

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.