Quantcast
Channel: Active questions tagged filereader - Stack Overflow
Browsing all 53 articles
Browse latest View live

I can't read json file with FileReader in vue 3;

Im want to display the keys of the object of a json file imported in the v-file-input tag, and i tried to use FileReader for it but it also gives me the same error:Uncaught TypeError: Failed to execute...

View Article



Specific difference between bufferedreader and filereader

I would like to know the specific difference between BufferedReader and FileReader.I do know that BufferedReader is much more efficient as opposed to FileReader, but can someone please explain why...

View Article

Reading lines with different data types from txt file in c

How can I read multiple lines from a txt file if I want to store the data in different variables? Each line contain the same data type order: int string string char string, separated with tabs.For...

View Article

In Java, how do I check if a specific element appears in an array? [duplicate]

Please bear with me, I am very new to Java. I have created an array that is created from two text files using File Reader when the program is run, I need to check if an element in the list is a...

View Article

Image may be NSFW.
Clik here to view.

I made a program that should send me two "best phones" from a list of phones...

This is a link to my java project: https://github.com/Mundanest/Java-files/tree/main/Lab%207(This is my first time using github, as I'm not sure how else to link a java project folder so I might have...

View Article


How to get the equivalent data format of curl -T --upload-data option from...

curl has -T, --upload-file option to "transfer the specified local file to the remote URL".curl -v "http://some/data/consumer" -XPOST -T "some/file/name"How can I get the equivalent data of a file...

View Article

Integer.parseInt() throws NumberFormatException for some numbers read using...

I am trying to read numbers from a text file.The first lines of metro.txt contain:376 9330000 Abbesses0001 Alexandre DumasWhereas the first few lines of testnum.txt contain:444 5556666 flowers8888...

View Article

Why does my reader output square symbols?

I am following some tutorial vids and learning how to read files with java. In this example the instructor creates a char array sized to 100 and then uses the FileReader class to read a text file and...

View Article


Issue With Verifying Scanner Inputs via File Reading in Java

QuestionI'm attempting to verify the scanner inputs in my main method with the contents of input.txt, which contains an id, salary, and employee status number. I'm attempting to do this by reading the...

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

Uncaught TypeError: getImage.crop is not a function

The code I get this error is:const crop = imageSrc.crop({ x: value.x / ratio_w, y: value.y / ratio_h, width: value.width / ratio_w, height: value.height / ratio_h,});I got this error when I was trying...

View Article

mirth file reader to read fhir-json content and replace few string

I want read file through mirth file reader which has fHIR-Json. I need to replace the string values and again write it in to the same file. How to do...

View Article

Read File Excel

I read a big file excel with 70,000 rows and 10 columns with JAVA. I use Apache POI to read and get the data but it takes much time like 1 hour. I changed to using fast-excel to read the file but just...

View Article


How can I open a PDF file with FileReader and get the path? [duplicate]

I want to display a PDF file with the following code. So far everything works fine, the file 'Test.pdf' opens. Now I want to be able to select a file via an "File-Open" dialog.I tried different...

View Article

file reader read blob file

i am trying to use filereader to access a blob file located locally, such as c drive, then converts it back to object URL as img src. it is not working, can anyone help this?never found anyone try to...

View Article


Finding largest value in a file and printing out value w name

I need to create a progtam that opens a file then reads the values inside the file and then prints out the name with the largest value.The file contains the following info:Juan,27Joe,16...

View Article

How do i get the names of a files in a folder in React js

I need to get a list of file names in a folder. The react project was created using vite.The needed file dir is src/data/(the json files which i need the name of).I know that there is fs and...

View Article


TypeError: Failed to execute 'readAsText' on 'FileReader': parameter 1 is not...

I'm writing an chrome application with scala.js, and have some file reading problem.When I use chrome.fileSystem.chooseEntry with openDirectory to select a directory, I want to read the _meta_.json...

View Article

Image may be NSFW.
Clik here to view.

after reading a file as text i can't remake a file from it

i have a file a image/png file i need to read it with the FileReader api and then make a file or blob from the text the problem here is when i try to make a file the data seems to be corrupted i tried...

View Article

Image may be NSFW.
Clik here to view.

FileReader losing data when reading PDF

I have the constraint of sending data to a server in JSON format only, and I need to send a PDF file together with other form data in the JSON. I though I could make a string from it with base64 like...

View Article
Browsing all 53 articles
Browse latest View live




Latest Images