Quantcast
Channel: Active questions tagged filereader - Stack Overflow
Browsing index pages (114 articles)
↧

FileReader for text file in Android

Good times!My Android app is trying to read simple text file, using usual Java combinationFileReader fr = new FileReader("file:///android_asset/example.txt");BufferedReader bfr = new...

View Article


Make HTML5 FileReader working with heic files

When reading a file from the input element by the FileReader api it works, but my android device also allows sending files and it seems to send heic files anyway which then results in an empty image...

View Article


iOS 8.1.2 issue opening file [duplicate]

ProblemI have an issue with the iOS.I am working in a web application with a mobile skin full responsive.In the PC version everything works fine, same happening with android. Everything runs without...

View Article

FileReader onload with result and parameter

I can't manage to get both the result of the filereader and some parameters in a onload function. This is my code:HTML of control:<input type="file" id="files_input" multiple/>Javascript...

View Article

How to create image file on Google Drive having BinaryString or any of...

I'm passing data to the Google application which published on the web using Post method. Here is the code of the sever side:function doPost(e) { var params, result, responce; if(typeof e !==...

View Article


Getting zero after reading a column of integer values from a file

So i have been stuck with this problem for a week now. I need to get the values from the last of column of the file that i am reading. But i when i try to read that array outside the while loop i am...

View Article

How to control/record the order FileReader uploads files in?

I've created a basic JSON object as a request to ChatGPT then I loop through a bunch of images selected via an input tag and add them dynamically to the object for it to have a look at the images and...

View Article

Problem trying to sort images alphabetically by file name that have been...

I am trying to load images into an html document using the file reader API, and then sorting them alphabetically. The code I have written loads the images into the div just fine, however it doesn't...

View Article


Using pattern matching to sort from a file, Java

So I've gotten my program to the point where it properly separates the lines of the text file properly and can even match the pattern for the first line of text but i also need to be able to detect and...

View Article


How to parse Excel (XLS) file in Javascript/HTML5

I am able to read Excel file via FileReader but it outputs text as well as weird characters with it. I need to read xls file row-wise, read data in every column and convert it to JSON. How to read xls...

View Article

Reading a 92 byte CSV file takes 15–20 seconds to process [closed]

I'm working on an Angular app and trying to read and parse a simple CSV file that is only 92 bytes.Surprisingly, the upload and processing takes around 15 to 20 seconds, even for such a tiny...

View Article

How do I read the first N bytes of a file from an HTML File input?

SituationSay the user may upload a file on a web page, that usually is of a big size (minimum 80 MB, can be way more), and of a specific type, say, for example, PDF.Considering these are huge files, we...

View Article

Parse CSV records in to an array of objects in JavaScript

I'm new to JS and not much exp in Regex to play with string manipulation. Here is my CSV file with records in tabular form with the first line as headers and from on next line the values will be...

View Article


Convert Blob to image url and use in image src to display image

How to convert blob to base64/image? I am getting this blob through API call and I am trying to display it in a image. I have tried with stackoverflow answers but nothing could help so I just tried...

View Article

Javascript Promises with FileReader()

I have the following HTML Code:<input type='file' multiple>And Here's my JS Code:var inputFiles = document.getElementsByTagName("input")[0];inputFiles.onchange = function(){ var fr = new...

View Article


FileReader.readAsArrayBuffer handling of non-ASCII including £ (pound sterling)

I am using FileReader.readAsArrayBuffer(file) and converting the result into a Uint8Array.If the text file input contains a pound sterling sign (£), then this single character results in two byte...

View Article

JavaScript FileReader Slice Performance

I am trying to access the first few lines of text files using the FileApi in JavaScript.In order to do so, I slice an arbitrary number of bytes from the beginning of the file and hand the blob over to...

View Article


Can't find variable: FileReader in Safari

i uses html5 upload try{ var reader = new FileReader(); reader.onerror = function(e) { }; reader.onload = function(e) { }; reader.readAsText(file); }catch(e){ }but in safai when i upload a .torrent...

View Article

Specify the type returned from FileReader readAsDataURL() as PNG and not TIFF?

I'm getting an image that has been pasted into the content editable div and during paste the types in listed in the Clipboard include "image/png" and "image/tiff". When I get that image using a...

View Article

Problem on Nand2tetris Jack to a syntax tree

i have done some project of Nand2tetris for my class and i have huge probleme on the 10 , it's about the reader i think after the evaluation of the 3 first token it's say that the next token is None...

View Article
Browsing index pages (114 articles)


Latest Images