Tagged Questions
2
votes
1answer
114 views
GJS read file synchronously
I'm trying to use GJS and more precisely
to read a text file in a synchronous way.
Here is an example an the asynchronous function for file reading
gio-cat.js
I found how to proceed with seed using ...
2
votes
1answer
3k views
NodeJS fs.open failing on existing file (not a path issue)
I've been dealing with this for a long time, so any help is much appreciated. So, I'm downloading a file and saving it using PhantomJS and CasperJS. Let me point out that they aren't the issue. The ...
2
votes
0answers
27 views
ServerSide JavaScript File I/O
I'm using ServerSide JavaScript as part of an Apache Tomcat solution. Does anyone know if there is any way to read/write file contents using JavaScript on the server side. Just to be clear, the ...
1
vote
0answers
45 views
Reading data from file with javascript + cordova
I'm trying to understand how file reading/writing works with cordova/phonegap but it seems I'm not succeding. I have implemented the "Full example" here on my computer and runned it with Ripple ...
1
vote
0answers
105 views
is something wrong with how I read tgz files in Node.js? Benchmark says it is slow :(
benchmark of my function:
mark@ichikawa:~/inbox/D3/read_logs$ time python countbytes.py
bytes: 277464
real 0m0.037s
user 0m0.036s
sys 0m0.000s
mark@ichikawa:~/inbox/D3/read_logs$ time node ...
1
vote
0answers
1k views
File Exists But Receiving ENOENT Error
Here is a gist: https://gist.github.com/973e70bde8e6a530c489
I have two scenarios. One works and one fails even though the code is exactly the same.
Take a CSV file already on the box and parse it. ...
1
vote
0answers
126 views
Drag out generated binary from HTML5 Web Application
I created a small binary stream with the BlogBuilder. And now I want to get a way for the user to save it on the desktop. Is there anyway (dragging, anchor, ...) to do this without a server?
I have ...
1
vote
0answers
229 views
Javascript saving xml using Ruby on Rails
First, what I am trying to do is:
I am trying to create a browser application that works on clientside. The basic idea is the user uploads a xml file into javascript. Javascript does calculations on ...
0
votes
0answers
215 views
File handling in a chrome extension using NPAPI (npapi-file-io)
I'm writing a chrome extension that needs to be able to access the file system for reading/writing/listing files. To do this, I've been trying to use npapi-file-io, but I've had no success getting it ...
0
votes
0answers
297 views
Read a file as binary data in JavaScript on the client side
As the question states, I'd like some way to read files on the client side using JavaScript (is there any other possible alternative?).
These files(images mostly) are part of the webpage, and so I do ...
0
votes
0answers
189 views
Saving remote images to local folder via Javascript
Is it possible to download an image with a specified URL to a folder within the space of the web app, say in /images, to be accessed locally?
I say this because I'm writing a mobile web app wrapped ...
0
votes
0answers
136 views
Using JavaScript to create a .doc file
Is it possible to create a .doc format file in JavaScript natively?
Currently I have a Mozilla addon which creates .txt files but curious to see if it could be extended to .doc ..
file = ...
0
votes
0answers
22 views
How do I dynamically modify a function that uses a combination PHP,JS?
First, a button on the page which makes visible the file images div:
<div id="button_clipcustid">
<a onclick="changeVis('apDivcustid','99');"
href="javascript:void(0);"style= ...
0
votes
0answers
102 views
File query contentschanged event not fired
I have a background task that tries to track changes in a local folder using the 'contentschanged' event, for some reason, most of the time the event doesn't fire.
Some points:
It seems that in ...
0
votes
0answers
419 views
how to read a local file IO javascript
How do I read a local text file in JavaScript, w/o jquery etc.? I realize the question has been asked before, with a gazillion answers (but both html and javascript also have changed a lot over the ...