Questions tagged as 'file'

2
answers

C # compare two files by their properties

I need to compare two text files for their properties in C #, and not for their content. For example, by creation date and by modification date. I have managed to compare it by the content, I leave here the code: private bool FileCompare(strin...
asked by 28.09.2017 / 07:34
2
answers

Search for a file in a directory but that does not exist C #

I have to test that when searching for a file by name in a directory it does not exist and I indicate it on the screen. I show you my code, where is the comment of the interrogations is where I have the problem, the rest works correctly: stati...
asked by 05.10.2017 / 09:04
2
answers

Take a file path from an array of C # files

I have an array of files, and I have to get the string from one's route. I can not find any method that does it. The code what it does is go through two directories of files, and then look for the first file of the source directory in the destin...
asked by 02.10.2017 / 10:25
1
answer

Error uploading files using PHP

Whatever I do, I always get the error: //echo "Ha ocurrido un error. Inténtelo de nuevo..."; And yes, I have the Xampp on with the Apache and MySQL. HTML Code: <form action="<?php echo $_SERVER['PHP_SELF'];?>" enctype="multi...
asked by 12.01.2018 / 18:59
1
answer

Convert a file into a binary array from JavaScript

Hello, I would like to know if there is a way to convert a file / file into a binary object from js and then pass it as a parameter in ajax . If we assume that I am taking a file from a input type = file and then I want to pass it to the se...
asked by 16.11.2017 / 00:52
1
answer

problem when copying file from local and moving it to ftp server c #

I have to copy an .exe from a local folder and move it to an ftp server, in doing so, the .exe becomes a larger file and does not let me run it. This is the code I have: public static void FtpBkAndUploadNewVersion(string direccionIP, string us...
asked by 31.10.2017 / 15:47
2
answers

Can a boolean be modified in a serializable binary file?

As I read on some websites, you can not modify the object, but you can change the value of a Boolean variable. The point is that I do it in the following way and it does not show any error, but when I make the modification and print the object i...
asked by 25.01.2018 / 21:30
2
answers

Upload a file to the server, limiting extensions and file type

With $_FILES["files"]["type"] I can upload files pdf , but I'm trying to specify that I also accept files .ai ( illustrator ) and other possible extensions, but I can not do it. And will there be any way to visualize it on...
asked by 24.01.2018 / 17:11
0
answers

How to create a TXT from information from Firebase in android studio and save it in an FTP

I have a app to sell items that store the information in Firebase but at the end of the order I need to generate a .txt file with the articles and properties example I have in firebase Articles and inside I have color, price...
asked by 23.01.2018 / 21:05
0
answers

Error "getoutputstream () has already been called for this response" when opening pdf

I have this code that what it does is open a PDF that is in a route. When opening this file, it actually opens it, but in console it shows me the error of getoutputstream() has already been called for this response and it is annoying beca...
asked by 11.01.2018 / 21:14