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 3391396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:47:57+00:00 2026-05-18T03:47:57+00:00

I am developing a function in Javascript using FileSystemObject, where I just have to

  • 0

I am developing a function in Javascript using FileSystemObject, where I just have to write in a file the binary data we are provided. This is my function.

function exportFile(data)
{   
    var fso, f2;
    fso = new ActiveXObject("Scripting.FileSystemObject");
    f2=fso.CreateTextFile("C:\\example.js",true);
    f2.Write(data);
    f2.Close();
}

Nevertheless it doesn’t always work (error on f2.Write(data)). I guess it is because one or both reasons:
– Write function does not accept binary data (ASCII from 0-255)
– There is a maximum size for “data” in f2.Write(data)

Could you help me, please?

UPDATE:

I get this error (translated): Message: Argument or call to function not valid
Which technology should I use, then, if Javascript doesn’t work with plain block 8 bit values?

  • 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-18T03:47:57+00:00Added an answer on May 18, 2026 at 3:47 am

    FileSystemObject is notably limited, even for writing UTF-8 files satisfactorily I have had to resort to another solution: ADODB.Stream

    http://www.w3schools.com/ADO/ado_ref_stream.asp

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

Sidebar

Related Questions

I am developing site using codeigniter.I have a form which contains add button and
I'm developing a javascript code to run on an embedded device using the ANT
I am developing a WYSIWYG editor using the iframe technique. I need to know
So I have been developing a web application, and I have implemented the HTML5
I want to execute a function when an opened child window is closed. Child
Hi I am developing a user control with dropdown controls in asp.net. The requirement
I have a label that holds a value and a text box into which
I'm developing a jQuery plug-in that will be a connector for some REST API.
Really simple question. I trying to test a Restful webservice that I am developing,
I read a lot of JavaScript code and see lots of different styles of

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.