file-transfer

Designing a file transfer protocol in c++ [closed]

谁说我不能喝 提交于 2019-12-10 11:26:42
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I need to write a simple file transfer protocol in C++ to upload or download a file from a client to a server. Right now both my client and server applications are do-it-all scripts. I want to modularize everything in classes/methods so I can more easily modify things later. To

How do I transfer my build output files to an Azure VM using PowerShell DSC?

陌路散爱 提交于 2019-12-10 11:17:41
问题 I've been toying around with DSC and I think it's an awesome platform. I made a few tests to automate the deployment of our TFS build outputs and to automatically install the web applications and configure an environment. This was relatively easy, as I could pass my drop folder path to the DSC script using a file share on our internal network, and use relative paths inside the configuration to select each of our modules. My problem now is in how to expand this to Azure virtual machines. We

Smack's FileTransferManager.createOutgoingFileTransfer only accepts full JIDs. How can I determine the full JID of a user in Smack?

旧街凉风 提交于 2019-12-10 10:13:07
问题 After hours of debugging and trying to find out why the file transfer was not working using aSmack, while normal messaging was, I finally managed to pin it down to this. The Openfire server is sending the Rosters' JID missing the / at the end when I follow the method given in the Smack documentation to get a user's Roster list. Collection<RosterEntry> entries = roster.getEntries(); for (RosterEntry r : entries) { Log.v("Gabriel","Receiving: " + r.getUser()); } For example if I receive a

PhoneGap .wav upload from an iOS device is creating a 0k file on the server

我怕爱的太早我们不能终老 提交于 2019-12-10 06:25:52
问题 I am attempting to record audio on an iPhone using PhoneGap, then send that audio to a server. I am using PhoneGaps Media APIs to make the recording, then the PhoneGap file transfer API to send the file to the server. I am able to make the recording just fine, and playing it back works perfectly. When I try to send it to the server, however, the recording shows up on the server but it says the file is 0k big. I've done fairly extensive searching on this issue and found others that have had

How can I convince z/OS scp to transfer binary files?

依然范特西╮ 提交于 2019-12-09 17:54:04
问题 We have SSH-based file transfer scripts currently set up for Linux-to-Linux and we're porting them to z/OS to go z/OS-to-Linux. Note that this is with USS, the UNIX system services within z/OS otherwise known as OMVS, which uses EBCDIC under the covers, not zLinux which uses ASCII. We've set up all the SSH key files and what-not, and the transfer itself is working fine. However z/OS, in it's infinite wisdom, insists on converting the files from EBCDIC to ASCII despite the fact that they're

Save file to public directory using Cordova FileTransfer

三世轮回 提交于 2019-12-09 05:23:15
问题 I need to download files on my mobile device and make them accessible for other apps (using Android and iOS). I managed to download a file to the SD card ( cordova.file.externalDataDirectory ), but this only exists on Android and even then I cannot rely on every device having an SD card. When I download to the device storage ( cordova.file.dataDirectory ), the file is private to my app and therefore not accessible for other apps. The file can be opened in the InAppBrowser, but I would prefer

equivalent of ftp put and append in scp

北城以北 提交于 2019-12-09 05:23:14
问题 I have a legacy script which I am not able to understand. The script is to transfer 4 files (2 ebcdic format files and 2 pdf files) in unix to mainframes through ftp. ebcdic format file 1 is abc.xyz ebcdic format file 2 is pqr.xyz pdf file 1 is abc.pdf pdf file 2 is pqr.pdf mainframe file name is AM2P.BJCUN.SALCHG The syntax of the command in the script is as below: quote site recfm=fb put /myfiles/abc.xyz AM2P.BJCUN.SALCHG append /myfiles/abc.pdf AM2P.BJCUN.SALCHG append /myfiles/pqr.xyz

Replace FTP with SFTP

☆樱花仙子☆ 提交于 2019-12-08 12:00:37
问题 I am currently FTP'ing file to a Unix box from a Windows server. I want to change the following section of the script and migrate the FTP process to be SFTP. @echo off echo user %user%> ftpcmd.dat echo %password%>> ftpcmd.dat echo bin>> ftpcmd.dat echo put %filetobeuploaded% %filepath%%File%>> ftpcmd.dat echo quit>> ftpcmd.dat ftp -n -s:ftpcmd.dat %host% del ftpcmd.dat :END I have PSFTP.EXE installed on my windows directory. Using that can I send the files with SFTP ? How can I replace line

Android send file between two phones using socket and progress bar

百般思念 提交于 2019-12-08 10:42:27
问题 i want to make an application for transfer files using wifi direct, but my send and receiver progress bar won't update my sender public void Server () { new Thread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub try { //receive ip serverSocket = new ServerSocket(port); Socket socket = serverSocket.accept(); BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream())); String line = null; while ((line = in.readLine()) != null) {

Cordova FileTransfer Download error

元气小坏坏 提交于 2019-12-08 08:04:37
问题 I have a simple hybrid app which should download files with cordova 2.3.0. From the documentation: var filePath = someFullPath; //e.g. "file:///mnt/sdcard/myfile.pdf" var uri = encodeURI("http://someurl.com/myfile.pdf"); var fileTransfer = new FileTransfer(); fileTransfer.download( uri, filePath, function(entry) { console.error("download complete: " + entry.fullPath); }, function(error) { console.error("download error source " + error.source); console.error("download error target " + error