File Transfer API

Is there a generic File Transfer API out there somewhere? Here's what I'm after:
- Could be used to send a file to or receive a file from a remote computer.
- The implementation of the transport is encapsulated. Example transport implementations include FTP, RMI, direct socket, NFS reference.
I'm working on a transport method that aims to increase transfer performance over unreliable networks. If my app were programed to such an API, I would be able to easily substitute different transport strategies depending on network conditions.

Sorry, I didn't read the whole thing.
That is the easy part. Just use the proxy design pattern. I've done and seen this in practice many times. It is the standard solution when you need to dynamically pick and choose the transport layer.
interface FileTransferProxy {
  public void transferFile(String host, int port, File file) throws XYZ;
class FtpTransporter implements FileTransferProxy {
  // impl goes here.
// Set the transport impl to use.
TransferUtil.setFileTransferProxy(new FtpTransporter());
// or
TransferUtil.setFileTransferProxy(new RmiTransporter());
// basic usage ...
FileTransferProxy proxy = TransferUtil.getFileTransferProxy();
proxy.transferFile(host, port, file);

Similar Messages

  • Where can I find the jar file for File Transfer Service API

    Hi all ,
       I wish to use the File Transfer Service API in my application . Could anyone please tell me as to where I could find these class files ??
    <b>import com.sap.engine.services.file.RemoteFile;
    import com.sap.engine.services.file.FileTransfer;
    import com.sap.engine.services.deploy.DeployService;
    import com.sap.engine.services.deploy.container.WarningException;</b>
    Thanks in advance ,
         Tahzeeb

    Hi,
    you can find these jar files in the installation directory of NWDS:
    ...SAPJDTeclipsepluginscom.sap.tc.apcompSAP-JEEDCssap.comcom.sap.engine.deploy.online_compgendefaultpublicdefaultlibjavasapj2eenginedeploy.jar
    ...SAPJDTeclipsepluginscom.sap.tc.apcompSAP-JEEDCssap.comfile_compgendefaultpublicdefaultlibjavafile.jar
    Regards
    Sebastian

  • Steps for File Transfer through FTPS...!!!

    Hi ,
    Can anyone please tell the steps for file transfer with FTPS.
    Does PI file adapter has bulilt in feauture to handle this? or
    Do we need to deploy anything to handle this?
    Do we need to install any certificates by requesting from partner or It will do the encryptions/authentications on its own?
    Any additional Steps we need to mention in File receiver adapter while we send the file through FTPS?
    File is going through port 1090(unsecure connection) but it is not going through port (990) which is a secure connection.
    Please suggest me.
    Thanks
    Krupakar

    Hi Shabarish,
    We got the certificate from the partner and loaded into the trusted CA's. I tried running by giving
    Connectivity Security as "FTPS for Control and Data Connection" and Command Order as "AUTH TLS,USER,PASS,PBSZ,PROT"
    Ip: XXX.YY.YY.ZZZ
    Port: 990
    User and pwd.
    and I am getting the same below error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier
    I tried by selecting different options like
    1. Without selecting the X509 certificate for client authentication.
    2.  Keystore as TRUSTED\view\entry-cert
       X509 certificate and private key as TRUSTED\view\entry-cert
    3. Keystore as TRUSTED\view
      X509 certificate and private key as TRUSTED\entry-cert
    4.Keystore as "view"
      X509 certificate and private key as "entry-cert"
    Please help me in this.
    Thanks
    Krupakar

  • Java.IO file transfer

    Hi all,
    I have been trying to transfer the file from one server to another using java code. Using the api in the java.IO and the code from the following site http://www.roseindia.net/java/example/java/io/CopyDirectory.shtml
    First i shared the folder to be transfered, then at the receiving end, i map the network drive.. Using the code as in the site, i can transfer the file over.
    But i found that if the connection break in the mapping of the network drive, the code cannot resume the file transfer from where it left behind.
    Actually, my requiremnts is to able to transfer the file and able to resume from where it stop when the connection break and not to overwrite any files.. and it able to check the sending server if there is any new files added to the folder, if yes then it will transfer over the receiving server.
    Thanks
    cheng

    Using ... the code from the following site http://www.roseindia.net/java/example/java/io/CopyDirectory.shtml
    That was your first mistake. That site is a notorious source of complete rubbish. In this case, unusually, the code looks not too bad apart from not calling mkdirs() as well as mkdir().
    But i found that if the connection break in the mapping of the network drive, the code cannot resume the file transfer from where it left behind.Correct. It doesn't do that. So you need to modify it to do so. If it finds that the target file exists and has a non-zero length, it needs to open it for append and skip to that offset in the source file before starting the copy loop. If it finds that the target file exists and has the same length as the source file and the same date it can skip the file completely. That should cover both your requirements.

  • Data loss in the secure file transfer using java

    Hi,
    My java Appllication uses the sftp(secure file transfer protocol) for file transferring. when the load is high like 150 GB , data loss occuring for some files especially last chunk of data is missing.
    Core file transfer code
    while (true)
    int read = bis.read(buffer); //Reading bytes into the byte array (buffer) from network stream (bis).
    if (read==-1) {
    break; //Break the loop, if there are no more bytes available in the InputStream.
    bos.write(buffer,0,read); //Writing the same number of bytes what we read into buffer byte array into OutputStream
    complete.update(buffer,0,read); //Giving the same number of bytes what we read above to the checksum calculation.
    bytesSoFar += read; //Incrementing the bytes that we have read from the source.
    //if the bytes transferred are equal to the source file size
    If (bytesSoFar == fileInfo.getFileSize().intValue())
    // Calculate the file checksum.
    // Update DbAuditLog with checksum and no. of bytes read
    else
    // Update DbAuditLog with no. of bytes read
    bos.flush();
    Please help , why the data loss is happening when the big size files transfer
    Note:
    1.150 gb not a single file multiple files.
    2.SFTP no java specific API, So connection is happening through java .io.sockect connection

    so, if you are not getting any exceptions, yet the data is incorrect, it sounds like you are having actual network issues. i'd start looking at things like the actual network cards in the computer as well other equipment involved in the transfer. since you are not getting exceptions, the network stack obviously thinks nothing was lost over the wire, so either the actual hardware has issues, or the network stack, or the issue is on the sending end. the last possibility is that the client is somehow munging the data it is sending. do you control the client code? if so, i'd start checking the client side code for bugs (and/or post it here).
    also, i'm assuming that all of the variables included in your original code are thread local (you aren't sharing any of those buffers/streams/etc between multiple threads).

  • JAVA file transfer

    Hello,
    I am currently working on an application that is to create a multipart response to the client.
    The first part of this response is to send an xml descriptor file, and the second part of this response is to send a content object (audio or image).
    The xml descriptor file needs to be generated dynamically according to the http headers received from the client and then sent to the client. How should I go about doing this? Just write everything I would in the xml file in a String, convert the String into bytes [] and write it to the response output stream? or create an actual temporary file on the hard disk, and then send that file to the output stream? I am new to JAVA so, really do not know the best approach to take.
    Note: I am prohibited due to some company policies to generate XML files using JAVAX or similar technologies.
    Any help would be appreciated.
    Thanks,
    Saurabh

    so r u saying that i can implement File transfer using only client APIs?
    but cudnt find it.. so plz explain a little. http://www.catb.org/~esr/faqs/smart-questions.html
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Thyrsus Enterprises
    Copyright © 2001,2006 Eric S. Raymond, Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal — in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse “its” with “it's”, “loose” with “lose”, or “discrete” with “discreet”. Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes. Worse: writing like a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best, a heaping helping of scorn and sarcasm) in return.

  • JProgressBar and file transfer

    Hi, I am trying to use a JProgressBar to determine how many bytes have been sent so far. I have constructed the JProgressBar with the maximum size of the file size. For each 'segment' of the file sent, the progress bar should increment using the setProgress() within the SwingWorker class. If I print the values out, they appear to be correct. However, if I use setProgress() the file transfer seems to fail (not even begin).
    Here's the relevant code:
    public class FileTracker extends JDialog implements PropertyChangeListener {
         private JPanel mainPnl = new JPanel(new BorderLayout());
         private JPanel progressBarPnl = new JPanel(new BorderLayout());
         private JPanel midPnl = new JPanel(new GridBagLayout());
         private JPanel bottomPnl = new JPanel(new GridBagLayout());
         private JLabel fileNameLbl = new JLabel("File name: ");
         private JLabel fileNamexLbl = new JLabel();
         private JLabel sizeLbl = new JLabel("File size: ");
         private JLabel sizexLbl = new JLabel();
         private JButton cancelBtn = new JButton("Cancel");
         private JProgressBar progressBar;
         private FileSender fileSender;
         private FileReceiver fileReceiver;
         private File file;
         public FileTracker(JFrame parent, String ip, int port, File file) {
              super (parent);
              this.file = file;
              fileSender = new FileSender(ip, port, file);
              fileSender.addPropertyChangeListener(this);
              fileSender.execute();
              setLocationRelativeTo(null);
              progressBar = new JProgressBar();
              progressBar.setMaximum((int)file.length());
              add(progressBarPanel());
              setResizable(false);
              setTitle("File sending..");
              pack();
              setVisible(true);
         private JPanel progressBarPanel() {
              progressBar.setValue(0);
              progressBar.setEnabled(true);
              progressBar.setStringPainted(true);
              progressBar.setIndeterminate(true);
              progressBarPnl.add(progressBar, BorderLayout.CENTER);
              return progressBarPnl;
         public void propertyChange(PropertyChangeEvent evt) {
            if ("progress" == evt.getPropertyName()) {
                int progress = (Integer) evt.getNewValue();
                if (progressBar.isIndeterminate())
                     progressBar.setIndeterminate(false);
                progressBar.setValue(progress);
                if (fileSender != null && fileSender.isDone())
                     progressBar.setString("Transfer finished");
                if (fileReceiver != null && fileReceiver.isDone())
                     progressBar.setString("Transfer finished");
    }The SwingWorker:
    public class FileSender extends SwingWorker<Void, Void> {
         private Socket socket;
         private FileInputStream fileIn;
         private OutputStream output;
         private File file;
         private byte buffer[];
         private int bufferSize;
         int bytesRead;
         int progress = 0;
         public FileSender(String ipAddress, int port, File file) {
              try {
                   System.out.printf("NOTICE: FileSender initialised. Sending to:%s on port: %d\n", ipAddress, port);
                   socket = new Socket(InetAddress.getByName(ipAddress), port);
                   output = socket.getOutputStream();
                   bufferSize = socket.getSendBufferSize();
                   buffer = new byte[bufferSize];
                   this.file = file;
                   setProgress(0);
              } catch (UnknownHostException e) {
                   // THE USER MUST BE INFORMED THAT THE RECIPIENT COULD NOT BE RESOLVED
                   e.printStackTrace();
              } catch (java.net.ConnectException ce) {
                   // INFORM THE USER THAT THE RECIPIENT COULD NOT BE REACHED
                   ce.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
         public Void doInBackground() {
                   sendFile();
              return null;
         public void sendFile() {
              System.out.printf("NOTICE: Sending file %s   %d bytes formed of %d segments.\n", file.getName(), file.length(), file.length()/bufferSize < 1 ? 1 : file.length()/bufferSize);
              try {
                   fileIn = new FileInputStream(file);
                   while ((bytesRead = fileIn.read(buffer)) > 0) {
                        output.write(buffer, 0 , bytesRead);
                        progress = progress + bufferSize;
                        if (progress  < file.length())
                             setProgress(progress);
                        else
                             setProgress((int)file.length());
                   output.close();
                   fileIn.close();
                   socket.close();
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException ioe) {
                   ioe.printStackTrace();
    }This has been bugging me for a long time. Any help/suggestions much appreciated.

    when you create an SSCCE and get rid of all the File, socket, streams and whatnot (something that you should do next time), you notice something funny:
    import java.awt.BorderLayout;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JProgressBar;
    import javax.swing.SwingWorker;
    public class FileTracker extends JDialog implements PropertyChangeListener
        private static final int MAX = 500;
        private JPanel progressBarPnl = new JPanel(new BorderLayout());
        private JProgressBar progressBar;
        private FileSender fileSender;
        private FileReceiver fileReceiver;
        public FileTracker(JFrame parent)
            super(parent);
            fileSender = new FileSender(MAX);
            fileSender.addPropertyChangeListener(this);
            fileSender.execute();
            setLocationRelativeTo(null);
            progressBar = new JProgressBar();
            progressBar.setMaximum(MAX);
            add(progressBarPanel());
            setResizable(false);
            setTitle("File sending..");
            pack();
            //setVisible(true);
        private JPanel progressBarPanel()
            progressBar.setValue(0);
            progressBar.setEnabled(true);
            progressBar.setStringPainted(true);
            progressBar.setIndeterminate(true);
            progressBarPnl.add(progressBar, BorderLayout.CENTER);
            return progressBarPnl;
        public void propertyChange(PropertyChangeEvent evt)
            //if ("progress" == evt.getPropertyName()) // *** avoid doing this
            if ("progress".equals(evt.getPropertyName()))
                int progress = (Integer) evt.getNewValue();
                progressBar.setValue(progress);
                System.out.println("progress is: " + progress);
                if (fileSender != null && fileSender.isDone())
                    progressBar.setString("Transfer finished");
                    System.out.println("file sender is done");
                if (fileReceiver != null && fileReceiver.isDone())
                    progressBar.setString("Transfer finished");
                    System.out.println("file receiver is done");
        private class FileReceiver
            public boolean isDone()
                return false;
        private class FileSender extends SwingWorker<Void, Void>
            private int max;
            private int bufferSize;
            int bytesRead;
            int progress = 0;
            public FileSender(int max)
                this.max = max;
                System.out.println("NOTICE: FileSender initialised. ");
                bufferSize = max;
                setProgress(0);
            public Void doInBackground()
                sendFile();
                return null;
            public void sendFile()
                System.out.println("NOTICE: Sending file ");
                System.out.println("Max = " + max);
                bufferSize = 10;
                while (progress < max)
                    try
                        Thread.sleep(100);
                    catch (InterruptedException e)
                        e.printStackTrace();
                    progress += bufferSize;
                    if (progress < max)
                        setProgress(progress);
                    else
                        setProgress(max);
                System.out.println("after while loop");
        private static void createAndShowUI()
            JFrame frame = new JFrame("FileTracker");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
            FileTracker filetracker = new FileTracker(frame);
            filetracker.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
    }The SwingWorker stops when only 20% of "file transfer" has occurred, but when the progress has reached 100. Then if you go into the [SwingWorker API for setProgress|http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html#setProgress(int)] , you see why the program is stopping here: the SwingWorker stops when its progress property reaches 100. So you must change this to a ratio rather than total bytes.

  • Zen Touch - file transfer sta

    using winmedia player, as well as the conventional explorer extension, no difference.
    copying a batch of files to the Zen... a file (few/none - sporadically) gets copied, the next one stalls halfway, and gets skipped. all consecuti've files do not get copied.
    i've encountered this a few times already. did a disk cleanup / library rebuild several times, it helped. now it does not...
    free disk space ~9Gb.
    any ideas ?

    this does not seem to be the case.
    after a computer reboot and yet another player cleanup, the same files were uploaded successfully. i'm even sure that file content does not matter a bit.
    using one or another program for file transfer does not change anything either, because they all use the same creative drivers that provide the API. even notmad explorer can not function without them. it's not a surprise that if WMP0 fails, so does the nomad explorer.
    the problem seems to be 00% software-originated. creative's software is junk - clumsy custom UI, crippled functionality, obviously bad implementation - i honestly tried to use it (all of it, organizer, explorer, media source, etc...) and arri'ved to a practical conclusion that the easiest way to have all-in-one functionality (media library, device sync) is to use WMP0+creative drivers. the only drawback this pair has is slow transfer rate (notmad explorer claims 40Mb transfer rate, which is also crap, because neither USB2 nor the HDD itself are that fast).

  • Slow file transfer to Azure File Service

    File transfer to Azure File Service (Beta) is very slow. Is this something that will be solved, or is there a trick to this? 
    Sean

    Yes. Pretty sure. 
    Based on MSDN Blogs > Microsoft Azure Storage Team Blog > Introducing Microsoft Azure File Service
    Description
    Azure Blobs
    Azure Files
    Durability 
    Options
    LRS, ZRS, GRS (and RA-GRS for higher availability)
    LRS, GRS
    Accessibility
    REST APIs
    SMB 2.1 (standard file system APIs) 
    REST APIs
    Connectivity
    REST – Worldwide
    SMB 2.1 - Within region 
    REST – Worldwide
    Endpoints
    http://myaccount.blob.core.windows.net/mycontainer/myblob
    \\myaccount.file.core.windows.net\myshare\myfile.txt http://myaccount.file.core.windows.net/myshare/myfile.txt
    Directories
    Flat namespace however prefix listing can simulate virtual directories
    True directory objects
    Case Sensitivity of Names
    Case sensitive
    Case insensitive, but case preserving
    Capacity
    Up to 500TB containers
    5TB file shares
    Throughput
    Up to 60 MB/s per blob
    Up to 60 MB/s per share
    Object size
    Up to 1 TB/blob
    Up to 1 TB/file
    Billed capacity
    Based on bytes written
    Based on file size
    Regards

  • UCMA to Capture File Transfer

    Recently my company decided to turn off file transfer through federation while leaving it on internal. We did not think this would be of much notice but did not have much insight on what kind of traffic this modality had. After turning it off it only took
    about a week for the complaints to start rolling in. This leads to my current development effort. I have created a MSPL script to capture the file transfer on my edge server and everything is great there. I am now trying to create a UCMA application that will
    sit and listen and when called would intercept the message, copy the file and download it, then send it back on to its intended recipient. I guess I underestimated how difficult this would be. It looks like for mediatypes there is not one even in the API for
    file transfer. Talking to MS they said I would need to extend out the API. I have done this so far to include the file transfer as a mediatype. But I need help in trying to extend whatever handler I need to use to listen and notice that a file transfer is
    happening. Can anyone assist in this?
    Thanks,
    Anthony

    Recently my company decided to turn off file transfer through federation while leaving it on internal. We did not think this would be of much notice but did not have much insight on what kind of traffic this modality had. After turning it off it only took
    about a week for the complaints to start rolling in. This leads to my current development effort. I have created a MSPL script to capture the file transfer on my edge server and everything is great there. I am now trying to create a UCMA application that will
    sit and listen and when called would intercept the message, copy the file and download it, then send it back on to its intended recipient. I guess I underestimated how difficult this would be. It looks like for mediatypes there is not one even in the API for
    file transfer. Talking to MS they said I would need to extend out the API. I have done this so far to include the file transfer as a mediatype. But I need help in trying to extend whatever handler I need to use to listen and notice that a file transfer is
    happening. Can anyone assist in this?
    Thanks,
    Anthony

  • File transfer on LAN

    hie...i made a program for file transfer.But i need to check the CPU usage and its advantage over normal file sharing and transfer on windows XP.Plz.. help me
    if someone wrk on this and better if i have some another algo to do the same(file transfer)

    This is not network question. Go to JNI forum and ask how to find CPU usage.
    In two words - there is no way without native API.

  • "Windows - No Disk" error message on file transfer

    Hello!
    I updated our ZDM7 server from plain old ZDM7 with no updates to ZDM7 SP1
    IR1. Now, when initiating File Transfer operation with any workstation, up
    comes this error message:
    "Windows - No Disk"
    "Exception Processing Message c0000013 Parameters 75b6bf9c 4 75b6bf9c 75b6bf9c"
    [Cancel] [Try Again] [Continue]
    If I click "Continue" 4 times, file transfer starts up successfully.
    Any ideas about how to get rid of this annoying message?
    Toomas Aas

    Toomas,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • UCMA 4 and back to backing a file transfer request

    OK, I know that file transfer isn't technically supported on UCMA 4.0, but I wanted to take another look at it and see whether there was a way to b2b a file transfer request. After all, there's no reason that it shouldn't work if the messaging is correct,
    right? The scenario I have is A <-b2b-> app <-b2b->B.  I have an IM conversation going on between A and B, so now I'm trying to set it up so that A can send a file to B. 
    So far I've extended the platform to accept file transfer requests by creating my own call and factory classes, and then registering them using RegisterPlatformExtension.  This means that when A sends a file, the INVITE gets delivered to my application. 
    Now I'm taking that INVITE and creating a new b2b call.  A file transfer request looks something like this:
    TL_INFO(TF_PROTOCOL) [0]16A8.4B28::02/10/2015-19:53:05.007.001d492f (SIPStack,SIPAdminLog::ProtocolRecord::Flush:ProtocolRecord.cpp(265))[3939761282] $$begin_record
    Trace-Correlation-Id: 3939761282
    Instance-Id: FDB3
    Direction: incoming
    Peer: 10.0.154.20:49282
    Message-Type: request
    Start-Line: INVITE sip:[email protected] SIP/2.0
    From: <sip:[email protected]>;tag=eafd3e699d;epid=ccd5657cac
    To: <sip:[email protected]>
    Call-ID: 0acf0330423241258576d7c5cc42aa01
    CSeq: 1 INVITE
    Contact: <sip:[email protected];opaque=user:epid:d2lIs-103l2YSpDwCSajtAAA;gruu>
    Via: SIP/2.0/TLS 10.0.154.20:49282
    Max-Forwards: 70
    Content-Length: 1920
    Content-Type: multipart/mixed;boundary="----=_NextPart_000_0026_01D04541.4641C2D0"
    Message-Body:
    ------=_NextPart_000_0026_01D04541.4641C2D0
    Content-Type: application/sdp
    Content-Transfer-Encoding: 7bit
    Content-ID: <[email protected]>
    Content-Dis; handling=optional; ms-proxy-2007fallback
    v=0
    o=- 0 0 IN IP4 192.168.200.71
    s=session
    c=IN IP4 192.168.200.71
    b=CT:99980
    t=0 0
    m=data 21300 TCP/RTP/SAVP 127
    a=ice-ufrag:lYAu
    a=ice-pwd:y0gkW4r9zGSW6E2VdtMprlEh
    a=candidate:1 1 TCP-PASS 2120613887 192.168.200.71 10856 typ host
    a=candidate:1 2 TCP-PASS 2120613374 192.168.200.71 10856 typ host
    a=candidate:2 1 TCP-ACT 2121006591 192.168.200.71 21300 typ host
    a=candidate:2 2 TCP-ACT 2121006078 192.168.200.71 21300 typ host
    a=candidate:3 1 TCP-PASS 2120612863 10.0.154.20 31624 typ host
    a=candidate:3 2 TCP-PASS 2120612350 10.0.154.20 31624 typ host
    a=candidate:4 1 TCP-ACT 2121005567 10.0.154.20 3921 typ host
    a=candidate:4 2 TCP-ACT 2121005054 10.0.154.20 3921 typ host
    a=cryptoscale:1 client AES_CM_128_HMAC_SHA1_80 inline:4CZbzYM/GYDbygj8JwMTodKo85C4Xx7TMzeMIuBU|2^31|1:1
    a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:Ohlo65gDsUvxCF39A382Rl4vGL+SG9R/lUEYU/br|2^31|1:1
    a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:EZ7Zm3K0H/WW5K49LAk9/C0T8x8nhkumJOycSek7|2^31
    a=setup:active
    a=connection:new
    a=rtcp:21300
    a=mid:1
    a=sendonly
    a=rtpmap:127 x-data/90000
    ------=_NextPart_000_0026_01D04541.4641C2D0
    Content-Type: application/ms-filetransfer+xml
    Content-Transfer-Encoding: quoted-printable
    Content-ID: <[email protected]>
    Content-Dis; handling=optional
    <request xmlns=3D"http://schemas.microsoft.com/rtc/2009/05/filetransfer" =
    requestId=3D"13">
    <publishFile>
    <fileInfo embedded=3D"true">
    <id>{67190A30-C59F-480D-96DD-5F3941C39C49}</id>
    <name>dbchange.log</name>
    <size>3609</size>
    </fileInfo>
    </publishFile>
    </request>
    ------=_NextPart_000_0026_01D04541.4641C2D0--
    $$end_record
    I've got my b2bed invite looking almost identical to the original invite by creating a custom MIME type on the CallEstablishOptions for the back to back call using something like this:
    Regex r = new Regex(@"^((.|\n)*)(\<request)((.|\n)*)(request\>)((.|\n)*)$");
    Match m=r.Match(args.RequestData.GetMessageBodyString());
    content=string.Format("Content-Transfer-Encoding: quoted-printable\r\n{0}{1}{2}",m.Groups[3],m.Groups[4],m.Groups[6]);
    opt.CustomMimeParts.Add(new MimePartContentDescription(new ContentType("application/ms-filetransfer+xml"),System.Text.ASCIIEncoding.UTF8.GetBytes(content)));
    opt.CustomMimeParts[0].ContentDispositionHeader = new SignalingHeader("Content-Disposition", "render; handling=optional");
    So far the only differences I can see in my outbound message vs the original SDP are that the Content-Transfer-Encoding might not be seen as a header (since the SignalingHeaders property on the MimePartContentDescription is read only), and the Content-Transfer-Encoding
    on the first MIME part (created by the BackToBackCall) is missing (even though I specified it on the PassThroughHeaders).  Even with all of this though, I still get a 488 on client B when I attempt the transfer (even though the invite goes through). 
    What I'm wondering though, is whether there's any way at all to get this working the way I'd expect, where a file gets transferred directly between A and B, without my bot having to receive it first.  The other approach I've looked at is binding my
    own media provider class to customize the SDP, but if this MIME part approach isn't going to work, then I have a feeling the media provider won't work either. 
    Any suggestions on where to look next? 
    Thanks!
    Chris

    Chris,
    I am trying to do something similar to this and from what I have read and in talking to MS is that you need to extend the Call and Flow class which it looks like you have been able to do. Could I bother you to share what you have written? Maybe we can help
    each other out on this. I am basically trying to create an application that will be able to capture a file transfer and save it, then send the original request on to the intended recipient.
    Thanks in advance,
    Anthony

  • I have an old ipod i just got the new iphone 4s but the songs that are on my ipod are not on my itunes how can i transfer them from my old ipod to my itunes. reason they are not on my itunes becasue i've change computer also and didn't a file transfer bef

    i just purchase the new iphone 4s. I also have an old ipod with a lot on songs which are not on my itunes becasue i didn't do a file transfer when i got my new computer a ew months ago. How can i add my songs from the old ipod to my itunes.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • MBP (mid-2009) freezing, slow installations and file transfer

    I bought the latest MacBook Pro model and installed Snow Leopard on a cleanly formatted hard drive. I have tried migrating via ethernet and FireWire from my iMac, but the migrations failed either due to freezing (via FireWire after roughly 24 hours of file transfer) or by an error message (ethernet with Migration Assistant).
    Only through a Time Machine backup was I able to transfer my account files to the MBP, which again totaled at over 20 hours of transferring. The system was a mess, clogged constantly by freezing and spinning beach balls of death for durations lasting around 10-20 seconds during which music would clip after 5-10 seconds of everything not responding, this being accentuated especially during installations. I decided to format and try anew.
    Now I've formatted the hard drive, installed Snow Leopard and will transfer my files manually onto a clean account. Installations take a long time although SL installation is within 30 minutes, iLife took 1.5 hours to install 5 GB. During the installation Safari stopped responding, as did the entire system, and the spinning beach ball would keep spinning. Watching a 480p trailer in Quicktime made the entire computer freeze up (no video/audio) for 10 seconds halfway. Transferring 136 GB (my Music folder) will take around 15 hours according to the estimate after 10 minutes of transferring.
    I've sold my iMac now and all I have are the files on my external hard drive. I want to get them onto my MBP ASAP but the slowness is preventing me from doing what needs to be done and it's very frustrating. When I try to boot into Hardware Testing by holding D down the computer doesn't do it no matter what (Application DVD in or not, plugged into power or not). I've tried resetting PRAM but I get the same inaction.
    Any ideas?
    Edit: I've done Disk Utility to no avail, it finds nothing wrong.

    Installed, still getting freezes with spinning beach balls. Transfer says it would take 1 hour opposed to that 15 hours, but it stops transferring after X amount of gigabytes (from 0.5 to 5), not do anything for a while and then continue, stretching the estimate to over 2 hours after some time. I don't know if this is just with the hard drive.
    The freeze-ups are frustrating as **** and make for a very poor experience. Any ideas to get to the bottom of this? I still haven't been able to boot into the Hardware Test no matter how much I try.

Maybe you are looking for

  • HP 4050 Series Printing Problem with Leopard

    Have a Laserjet 4050 with a Hp Jet Direct card with ethernet connection. The printer is connected to a linksys wireless print server. Was working fine on Tiger but when I upgraded to Lepoard it will not work anymore. Have tried both the HP 4050 drive

  • Drag and Drop Image

    We are using Flex Builder 3 to write an Adobe Air application.  In one section, we want users to be able to drag an image and drop it to reorder their images as they need them.  Is there a problem with the 'Drag Image' proxy, that is present in the D

  • How to completely flatten pdf as if it was a paper scan?

    Can someone tell me how I can completely flatten a pdf, just as if I had scanned a paper? So there will not be any data attached to the file? I kwow how to flatten a pdf and to remove as many data as possible (optimize in the document and advanced me

  • Regarding shared file system requirement in endeca server cluster

    Hi, Our solution involves running a single data domain in an endeca server cluster. As per the documentation, endeca server cluster requires shared file system for keeping index file for follower node to read. My questions are, Can I run the endeca c

  • My div tag or navigation tag is not centre in dreamweaver cc. pls help

    <--here is my html file - -->       <---div id="bottom_box" class="fluid"> <ul id="nav_main_ul" class="fluid fluidList">     <li id="nav_main_ul_li" class="fluid">who we are     </li>     <li id="nav_main_ul_li" class="fluid">what we do</li>     <li