Hi, I'm programming simple TCP file transfer using TcpListener on reciever side and TcpClient on sender side. I have 2 options - synchronnous or asynchronnous. If I use synchronnous, I have to put sending/recieving methods into BackgroundWorker, to prevent freezing GUI thread. Asynchronnous version is without problems...
My question is,...
How do you create a .XPI package on a mac
...
Hi,
I want to provide an option to upload a flash file onto my server for my customers. I am using ASP.NET MVC with VB.
I am looking for code with in controller to upload file to my server and rename it, and the necessary security measures I need to consider.
Any pointers to a reference is fine.
Thanks in advance.
...
Hi,
I am using dsoFramer to open docx files in winforms. When a docx file is opened in dsoframer and user open the same document from windows explorer, the application becomes unstable. How can I prevent opening the file from windows explorer when it is open in dsoFramer.
Best regards.
...
I need a method of paramiko based file transfer with a lightweight SSH2 server (dropbear) which has no support for SCP or SFTP. Is there a way of achieving a cat and redirect style file transfer, such as:
ssh server "cat remote_file" > local_file
with paramiko channels?
Can paramiko.Transport.open_channel() or Message() do the job? I...
Seems really a simple thing but can't figure it out. I've been using the onchange event on element and it works well. Once the user browses and selects a file, I get the path and upload it using a my custom js function.
The problem is this doesn't work if a user selects the same file twice in a row, the onchange doesn't fire (which mak...
Hi,
Is there any way in Java (1.6+) to retrieve the partition disk structure? (For example: NTFS, FAT32, HFS+, or EXT3.)
External libraries are permitted.
Thanks,
Gianni
...
Possible Duplicate:
Get last n lines of a file with Python, similar to tail
Hello,
How can I have Python return the last n lines of a file without reading it line by line?
...
I want to link a physical file with a row in a table. My intention is to use database habilities to delete the files that are referenced in the table. For example:
$o = Doctrine::getTable('Document')->find(12);
$o->delete();
This code delete the row in the table, i want to delete an hipotetical file referenced in $o->file_locatio...
I would like to download a file using VB.NET (preferably) or C# via HTTPS.
I have this code to download a file over plain HTTP:
Dim client As WebClient = New WebClient()
Dim wp As WebProxy = New WebProxy("[IP number of our proxy server]", [port number of our proxy server])
wp.Credentials = CredentialCache.DefaultCredentials
client.Prox...
I am trying to use C# FtpWebRequest to download a file. I dont want to download unless the file version in the download site is greater than the current file version. How do i verify/get the file version on the remote server?
...
From Service method return me:
String FileName,
Byte[] FileData,
string FileType( includes: doc, pdf, tif, tiff, gif, jpg, jpeg, png, bmp, wpd)
How can I generate a file based on filetype and show it to user in browser? Download to user is ok for me
...
Hi, I want to be able to copy the file I have which comes in as XML into a new folder location on the server. Essentially I want to hold a back up of the input files in a new folder.
What I have done so far is try to follow what has been said on this forum post - link text
At first I tried the last method which didn't do anything (file...
I'm developing a JavaScript application that's meant to be run either from a web server (over http) or from the file system (on a file:// URL).
As part of this code, I need to use XMLHttpRequest to load files in the same directory as the page and in subdirectories of the page.
This code works fine ("PASS") when executed on a web server...
Is it possible to add additional controls to a file selection dialog? If not, what other ways are there to present load/save options to the user?
...
Hey,
I have been given a general explanation of how a computer boots up.
However a very loose definition to the term 'boot file' was given.
Could someone explain 'boot file' to me in a very simple but concise manner?
I have read about the POST, the clearing of registers, BIOS in the CMOS, etc.
What I understand is that the boot file is...
As a practice exercise at my college we have to make a simple room booking system, complete with its own config file. We're not allowed to use the one built into VB.NET (the professor wants us to adapt to not relying on things like that) so I've made my own. This is a sample:
// Config file.
// First column is the variable name that wil...
We all know that it is possible to "open" a Word document (or file from any arbitrary application) by clicking on a website link and then clicking the Open button.
I also know that, if I want to upload an application document to a web server, I must first save the document to my computer, and then go to an upload page, click a file/open...
I've got a very similar scenario to the one described in this post. It describes how to load the contents of a file that contains properties & items, making sure they're resolved as part of the process. I'm doing the same thing except writing the contents away to another text file (generally .ini file).
In short I'd start by importing a...
Hi,
I generate PDF's using FPDF and I need to email it to a customer.
Since I can generate the PDF's from the DB, I don't want to save all the PDF's locally as it will clutter up my server.
I want to be able to send an email with a PDF attached. Do I need to create a temporary file, then delete it every time or is there another way to...