Questions tagged as 'archivo'

0
answers

Error creating a Schema with a field of type file in NodeJs

const mongoose = require('mongoose'); const {Schema} = mongoose; const empleado_schema = new Schema({ dni:{type:String,required:true, unique:true}, nombre:{type:String, required:true}, apellidos:{type:String, required:true},...
asked by 03.12.2018 / 19:51
1
answer

Where to host files in maven web project

I have a web project built with maven and eclipse that from a byte array I must write the files inside the project folders and then through a url the files can be downloaded. Looking for the files I could leave in the resources folder. In...
asked by 17.11.2018 / 06:38
0
answers

Error creating file using createNewFile

I'm doing a program that needs to create a file that stores an array to load it later, the problem is that when I create it I get the following error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.victor.miscompaneros, PID: 1328...
asked by 16.11.2018 / 19:04
0
answers

Folder path to external equipment

In a terminal with Windows I have a virtual machine with a CentOS to which from a Java application that I am running from the host machine I am trying to point to an address of a directory that belongs to the CentOS machine.    WalletUtils.ge...
asked by 15.11.2018 / 12:04
1
answer

Write PDF text file line by line

I need to extract text from pdf files (line by line) but it does not write to me in the text file; class Program { static void Main(string[] args) { PdfReader reader = new PdfReader(@"c:\temp\textoPDF.pdf"); int intPag...
asked by 12.11.2018 / 19:58
1
answer

I try to replace a few bytes of a binary file, but it does not do it correctly, in Python

Anyone with experience in file manipulation? 1st Code block, create a text file. 2nd Code block, replaces the first letters of the file leaving the rest intact. (ALL CORRECT) The input is only for pausing. 3rd code block, try to...
asked by 11.11.2018 / 22:17
2
answers

Go through a file several times to make an FTP connection

I need to go through the file login.txt several times, as many times as users have (in this case I only have one user) with open("login.txt") as fichero: dirServer = fichero.readline().split(":")[1].strip() usuario = fichero.rea...
asked by 31.10.2018 / 10:36
0
answers

Select image and send it by mail // Share attachment in mail

Good morning. I'm trying to make an application that allows you to select an image (from the gallery or any place where there are images) and send it by mail. I was looking everywhere but I can not manage to send the image, sending only text is...
asked by 25.10.2018 / 16:39
2
answers

Help on an ArrayList exercise

I'm trying to do an exercise where I have to use the ArrayList class and I can not find a way to do it. The statement of the exercise is as follows:    In a teletype terminal there is a backspace character that allows you to cancel the last...
asked by 11.10.2018 / 17:58
1
answer

Modify a binary file in C

I need to read and modify a binary file, I am using this code: FILE *fp; t_data dat; fp=fopen("file.bin","r+b"); fread(&dat,sizeof(t_data),1,fp); while(!feof(fp)) { if(dat.aaaa==2018) { int pos = ftell(fp)-sizeof(t_data);...
asked by 11.10.2018 / 16:12