Questions tagged as 'arquivo'

1
answer

Create dynamic structures starting from a text file?

I have data saved in a text file. I want to read the text file and store the data in my variables, and then insert them into my inserir_medico function that will use the data to create a concatenated List. The problem is that, I have a va...
asked by 22.08.2016 / 02:41
1
answer

Problem with file transfer via socket with java

I'm trying to make a client / server program that accepts more than one client and that client sends files to the server. The transfer was working correctly, however when I put a while so that when sending once it might give the option to send a...
asked by 31.07.2016 / 05:40
2
answers

Creating dynamic structures based on a text file

Is it possible to create a dynamic structure based on information stored in a text file (file)? Or is this only possible if the file is binary? For example: if I have a number (5) in a text file, can I go fetch it and store it in a dynamic st...
asked by 06.07.2016 / 01:36
1
answer

read from binary file to linked list c

Well, I'm having a problem reading the information from a binary file and inserting it into memory in a linked list. PERGUNTAS val; lista_perguntas * aux = original->next; lista_perguntas * base = original; lista_perguntas * novo; while...
asked by 28.05.2016 / 15:26
0
answers

How do I get a file from within the database?

I'm using postgresql as sgdb, and I'm saving .txt files in bd, so far, all right, it's already working fine, but I'm not finding a way to get the contents of the txt files saved in bd, I'm using php with PDO for connection to bd The type of c...
asked by 30.03.2016 / 00:48
0
answers

Directory monitoring causes the system to stop responding to interactions

I have an application that monitors a certain folder and checks if there is a new file creation if a new file is created by triggering multiple processes on the system. But when I activate the monitoring it seems it locks up multiple processe...
asked by 02.03.2016 / 23:17
1
answer

File There is PHP

I'm using this function to check if the file exists: <?php header('Content-Type: text/html; charset=utf-8'); //header('Accept-Ranges: bytes'); $nome_real = $_FILES["Arquivo"]["name"]; $pastadestino = "/pasta/$nome_real";...
asked by 24.11.2015 / 03:15
1
answer

IndexOutOfBoundsException on reading an InputStream

The following is the code I'm studying: FileInputStream stream = new FileInputStream("/home/rafael/2015.json"); // esse aquivo tem 24 bytes byte[] result = new byte[(int) stream.getChannel().size()]; int offset = 0; int read = 0; while((rea...
asked by 19.12.2015 / 16:47
1
answer

Download file to server [duplicate]

I own the URL where the file is downloaded from. By clicking on it, the file is downloaded directly, without even accessing and clicking on a link. That said I need a way to automate this task with PHP. A script that when downloaded downloa...
asked by 19.07.2015 / 01:07
0
answers

Form does not send POST

I'm developing an XLS for MySQL data import system. The system is practically ready. I ran a test with a xls 24kb file and successfully exported without any errors. The problem is that I was testing now with a xls file with 1MB a...
asked by 14.07.2015 / 15:58