Sending file using sockets (difficult)

Hi, i have the following section of code
(of which i am not claiming ownership) which
implements a DCC Send command from irc.
It accomplishes this using sockets, and while
i understand how the code accomplishes what it
does, i need help with a possible modification.
Basically what i am looking to do is keep track
of the progress of the send - so that the
user can at any time see how much of the file
has been sent and how much is remaining.
If anyone has done such a thing in the past or
has a good idea as to how this should be implemented,
i would be greatful for their help.
Here is the code:
new Thread() {
            public void run() {
                try {
                    ServerSocket ss = new ServerSocket(0);
                    ss.setSoTimeout(timeout);
                    int port = ss.getLocalPort();
                    //byte[] ip = ss.getInetAddress().getAddress();
                    byte[] ip = InetAddress.getLocalHost().getAddress();
                    long ipNum = 0;
                    long multiplier = 1;
                    for (int i = 3; i >= 0; i--) {
                        int byteVal = (ip[i] + 256) % 256;
                        ipNum += byteVal*multiplier;
                        multiplier *= 256;
                    // Rename the filename so it has no whitespace in it when we send it.
                    // .... I really should do this a bit more nicely at some point ....
                    String safeFilename = file.getName().replace(' ', '_');
                    safeFilename = safeFilename.replace('\t', '_');
                    // Send the message to the user, telling them where to connect to in order to get the file.
                    sendCTCPCommand(nick, "DCC SEND " + safeFilename + " " + ipNum + " " + port + " " + file.length());
                    // The client may now connect to us and download the file.
                    Socket socket = ss.accept();
                    socket.setSoTimeout(30000);
                    // Might as well close the server socket now; it's finished with.
                    ss.close();
                    BufferedOutputStream output = new BufferedOutputStream(socket.getOutputStream());
                    BufferedInputStream input = new BufferedInputStream(socket.getInputStream());
                    BufferedInputStream finput = new BufferedInputStream(new FileInputStream(file));
                    byte[] outBuffer = new byte[bufferSize];
                    byte[] inBuffer = new byte[4];
                    int bytesRead = 0;
                    while ((bytesRead = finput.read(outBuffer, 0, outBuffer.length)) != -1) {
                        output.write(outBuffer, 0, bytesRead);
                        output.flush();
                        input.read(inBuffer, 0, inBuffer.length);
                    output.close();
                    input.close();
                    log("+++ DCC SEND Completed to " + nick + " (" + file.getPath() + ")");
                }

You already have the necessary code to find the number of bytes sent at any point during the transmission. You can find out the size of the file by instantiating a RandomAccessFile before you send it, and querying for the file length.
I suggest you make the file size and bytes sent volatile and conveniently accessible to another thread (best implemented here as an inner class?). Your new thread will need to monitor the file transfer at intervals to update the progress indicator. You can generate estimates of time remaining by measuring the average transmission rate, and extrapolating using the total file size. Classically this is done using an average, but you might be better just maintaining a list of fairly recent samples, allowing for the speed swings inherent in internet connections.
How you update the progress indicator from your monitor thread is up to you. I suggest exposing methods in the UI for setting the progress and time remaining, and simply update them from the monitor.
Does this help any?

Similar Messages

  • Send a picture file using sockets

    Hi,
    Could someone please tell me how I can send a picture file using sockets across a TCP/IP network? I have managed to do it by converting the file into a byte array and then sending it but I dont see the data back at the client when I recieve the file. I just see the byte array as having size 0 at client.
    Byte array size is correct at client side.
    //client code
    System.out.println("Authenticating client");
              localServer = InetAddress.getLocalHost();
              AuthConnection = new Socket(localServer,8189);
              out = new PrintWriter(AuthConnection.getOutputStream());
              InputStream is = AuthConnection.getInputStream();
              System.out.println(is.available());
              byte[] store = new byte[is.available()];
              is.read(store);
         ImageIcon image = new ImageIcon(store);
              JLabel background = new JLabel(image);
              background.setBounds(0, 0, image.getIconWidth(), image.getIconHeight());
              getLayeredPane().add(background, new Integer(Integer.MIN_VALUE));
    //extra code here
              catch (UnknownHostException e) {
    System.err.println("Don't know about host: LocalHost");
    System.exit(1);
              catch (IOException e) {
    System.err.println("Couldn't get I/O for "
    + "the connection to: LocalHost");
    System.exit(1);
    //server code
                   DataOutputStream out = new DataOutputStream(incoming.getOutputStream());
                   FileInputStream fin = new FileInputStream("3trees.gif");
                   byte[] b = new byte[fin.available()];
                   int ret = fin.read(b);
                   out.write(b);

    i used OutputStream as
    OutputStream out = incoming.getOutputStream(); and flushed the stream too.
    But I still get the same output on the client side. I tried sending a string and it works , but I cant seem to be able to populate the byte array on the client side. It keeps showing zero. Please advise.
    Thank you.

  • Downloading a binary file using sockets without length known

    Hi all,
    I'm trying to download a binary(.exe) file using socket, where the length of the file is not known. Please take a look at the code I'm using:
          var readBin = socketBin.read();
         <-- Here comes the code that checks for http Content-length header field
         ; If content-length field is available, then I'll use it to download file, else proceed with following code -->
        pBar.reset("Downloading plugin..",null);pBar.hit(readBin.length);       
                while (1)
                    binFil.write(readBin);     //'binFil' is the file, into which downloaded file is written.
                    readBin = socketBin.read();
                    pBar.hit(readBin.length);
                    if( socketBin.eof || readBin.length<=0){
                        break;}          
                binFil.write(readBin);
                binFil.close();
                socketBin.close();
    Problem is: I'm able to download file within 10 seconds when content-length is known. But when content-length is not known, its taking about 1 and half minute to download, also the progress bar gets struck for much of time.
    FYI: socket is opened in binary mode, file is getting downloaded correctly(even though it takes abt a minute). BTW Im using CS5.5 extendscript
    I'm not able to figure out where the bug is.

    Hi, Srikanth:
    Sevaral points.
    #1 When posting code, please use the web interface and the >> icon and choose Syntax Highlighting >> Java. Otherwise your code is just too hard to read and gets misformatted.
    #2 Apropos of #1, your script as written does not work, because this line:
    url=url.replace(/([a-z]*):\/\/([-\._a-z0-9A-Z]*)(:[0-9]*)?\/?(.*)/,"$ 1/$2/$3/$4");
    has an extra space in the $1 and should be this:
    url=url.replace(/([a-z]*):\/\/([-\._a-z0-9A-Z]*)(:[0-9]*)?\/?(.*)/,"$1/$2/$3/$4");
    Please take an extra moment to make sure that when you asking for help, you do so in a way that makes sense. Otherwise it takes too much effort to help you, and that is frustrating.
    #3 If we instrument your script by adding a line to the while() loop:
                while (1)
                    binFil.write(readBin);
                    readBin = socketBin.read();
                    $.writeln(Date()+" Read "+readBin.length+" chars, eof is "+socketBin.eof);
                    if(  readBin.length<=0){         break;}              
    We get output like this:
    Mon Jul 11 2011 12:06:56 GMT-0400 Read 1024 chars, eof is false
    Mon Jul 11 2011 12:06:56 GMT-0400 Read 1024 chars, eof is false
    Mon Jul 11 2011 12:06:56 GMT-0400 Read 1024 chars, eof is false
    Mon Jul 11 2011 12:06:56 GMT-0400 Read 631 chars, eof is false
    Mon Jul 11 2011 12:07:06 GMT-0400 Read 0 chars, eof is false
    Result: undefined
    Therefore, we can reasonably conclude that the last read at the end of the data stream returns a short read when the other side blocks.
    Unfortunately, that's clearly insufficient since you can get short reads all the time.
    I'm not sure why you say the length of the file is not known, HTTP provides it to you in the Content-Length field of the response.
    But the easy answer is to get the server to close it for you. This is easy, enough, with Connection: close. Why were you specifying
    Connection: keep-alive, anyhow?:
                var requestBin =
                "GET /" + parsedURLBin.path + " HTTP/1.1\n" +
                "Host: " + parsedURLBin.address + "\n" +
                "User-Agent: InDesign ExtendScript\n" +
                "Accept: */*\n" +
                //"Connection: keep-alive\n\n";
                "Connection: close\n"+
                "\n";
    This yields a nice tidy:
    Mon Jul 11 2011 12:26:19 GMT-0400 Read 1024 chars, eof is false
    Mon Jul 11 2011 12:26:19 GMT-0400 Read 1024 chars, eof is false
    Mon Jul 11 2011 12:26:19 GMT-0400 Read 1024 chars, eof is false
    Mon Jul 11 2011 12:26:19 GMT-0400 Read 735 chars, eof is true
    Mon Jul 11 2011 12:26:19 GMT-0400 Read 0 chars, eof is true
    I suspect you're also better off using something like socketBin.read(64*1024) for a 64k buffer size, but it doesn't seem to effect the on-the-wire protocol, so perhaps its not so important.
    If you don't want to reply on the server

  • Not able to send file Using FTP in SSIS 2005

    I am using SSIS 2005
    I am trying to send file to ftp server using FTP task in SSIS but i am getting following error.
    Error Message-:An error occurred in the requested FTP operation.
    Detailed Description-:550 /FileName.txt: Access is denied.
    RemotefilePath is /
    I need a advice.
    Thanks in advance.

    I got this error recently from the FTP task in SSIS:
         Unable to send files using "FTP".
    I had everything correct, by the book.  I was trying to send a file, but I got the same error when trying to receive a file. 
    I already verified that I could send the file via command line FTP, so the FTP was not "secure FTP" (which wouldda required FileZilla or WinSCP or something similar) and my credentials were fine. 
    But I still got the above error.  Heck, I was beginning to thing that the FTP task in SQL Server 2008 was broken and just couldn't send files.
    Well, this issue is now resolved.  The problem was in the
    destination folder.  I was assuming that the root folder for my FTP account held the files. 
    So I entered the destination folder as this:   
    /data_in/
    But... the FTP task sees the root folder as one up from that. 
    So I had to use my account name in the path... meaning I had to change the destination folder to this:    
        /myaccountname/data_in/
        (where "myaccountname" was my login to the FTP site.)
    I hope this post helps someone else.
    Donna

  • Oracle BAM to monitor transfer of files using sockets

    Hi,
    We have two programs transferring files using sockets. We wanted BAM to monitor the transfer.
    Would you please suggest if this is achievable in BAM , and if so , any pointers to how we may go about implementing it .
    Cheers,
    Anant.

    You could generate success/failure/progress from your utility to JMS or call BAM webservices to populate BAM Data Objects. Reports could be built on top of that.

  • Moving Files using sockets

    I wanted to know of a good way to move, not copy, files using sockets? Any help would be great.
    Thanks

    Even on the same machine, you can only move a file on the same filesystem. i.e. the file appears in a different directory rather than copying the file.
    If you have an C: and D: drive for example it will copy and delete the file on a move.
    Unix allows you to have symbolic links which can make a file/directory from anywhere appear anywhere on your filesystem. It does not copy or actaully move the file, it just appears to be where ever you choose.

  • Problem with Sending files over Sockets

    Hi. I have a problem when I try to send files over sockets. When I send text files it works well but when I try to send .jpg or other kind of files it doesn't work well because some characters are wrong, I hope you can help me.
    Here is my code:
    //Sender code
    import java.io.*;
    import java.net.*;
    class Servidor{
         Servidor(){
              try{
                   String arch="art.jpg";
                   ServerSocket serv=new ServerSocket(125);
                   Socket socket=serv.accept();
                   System.out.println("Conectado");
                   int c;
                   BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
                   FileInputStream fis=new FileInputStream(arch);
                   File f=new File(arch);
                   bw.write(""+f.length());
                   bw.newLine();
                   bw.flush();
                   System.out.println("Escribiendo");
                   while((c=fis.read())!=-1){
                        bw.write(c);
                   bw.flush();
                   fis.close();
                   System.out.println("Terminado");
                   while(true){
              }catch(Exception e){
                   System.out.println(e);
         public static void main(String arg[]){
              new Servidor();
    //Client code
    import java.io.*;
    import java.net.*;
    class Cliente{
         Cliente(){
              try{
                   Socket socket=new Socket("localhost",125);
                   System.out.println("Conectado");
                   BufferedReader br=new BufferedReader(new InputStreamReader(socket.getInputStream()));
                   long tam=Long.parseLong(br.readLine());
                   long act=0;
                   FileOutputStream fos=new FileOutputStream("resp.jpg");
                   System.out.println("Recibiendo: "+tam);
                   while(act<tam){
                        fos.write(br.read());
                        act++;
                   System.out.println("Terminado: "+act+" / "+tam);
                   fos.close();
              }catch(Exception e){
                   System.out.println(e);
         public static void main(String arg[]){
              new Cliente();
    }

    I don't think you want BufferedReader and OutputStreamWriter, you want ByteArrayOutputStream and ByteArrayInputStream . The problem is that you are sending jpegs (binary data) as text.

  • Problem in sending file thru sockets

    Hello
    i am sending a file thru sockets....the file reaches the server but there is loss of file contents. i do not recieve the entire file. whats wrong?
    my Server code
    //package socket_try ;
    // SimpleServer.java: a simple server program
    import java.net.*;
    import java.io.*;
    import javax.comm.*;
    import java.util.*;
    public class Server
    public static final int BUFFER_SIZE = 1024 * 50;
    static CommPortIdentifier portId;
    static Enumeration portList;
    SerialPort serialPort;
    Thread readThread;
    public static void main(String[] ar)
    byte[] buffer;
    buffer = new byte[BUFFER_SIZE];
    int port = 6666; // just a random port. make sure you enter something between 1025 and 65535.
    boolean portFound;
    try
    ServerSocket ss = new ServerSocket(port); // create a server socket and bind it to the above port number.
    System.out.println("Waiting for a client...");
    Socket socket = ss.accept(); // make the server listen for a connection, and let you know when it gets one.
    System.out.println("Got a client :) ... Finally, someone saw me through all the cover!");
    System.out.println();
    BufferedInputStream bin = new BufferedInputStream(socket.getInputStream());
    BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("c:\\SMS.txt"));
    int in;
    try
    int len = 0;
              while ((len = bin.read(buffer)) > 0) {
                   bos.write(buffer, 0, len);
                   System.out.print("#");
              bin.close();
              bos.flush();
              bos.close();
              socket.close();
    ss.close();
    catch(Exception x)
    x.printStackTrace();
    catch(Exception e)
    System.out.println("Exception : "+e);
    my client code
    import java.net.*;
    import java.io.*;
    public class Client
    public static final int BUFFER_SIZE = 1024 * 50;
    public static void main(String[] ar)
    int serverPort = 6666; // make sure you give the port number on which the server is listening.
    String address = "192.168.1.3"; // this is the IP address of the server program's computer. // the address given here means "the same computer
    as the client".
    int in=0;
    byte[] byteArray;
    byte[] buffer;
    buffer = new byte[BUFFER_SIZE];
    try
    InetAddress ipAddress = InetAddress.getByName(address); // create an object that represents the above IP address.
    System.out.println("Any of you heard of a socket with IP address " + address + " and port " + serverPort + "?");
    Socket socket = new Socket(ipAddress, serverPort); // create a socket with the server's IP address and server's port.
    System.out.println("Yes! I just got hold of the program.");
    // Get the input and output streams of the socket, so that you can receive and send data to the client.
    // Just converting them to different streams, so that string handling becomes easier.
    BufferedInputStream bis;
    BufferedOutputStream bos;
    bis = new BufferedInputStream(new FileInputStream("c:\\send.txt"));
    bos = new BufferedOutputStream(socket.getOutputStream());
    byte[] receivedData;
    int len = 0;
    while ((len = bis.read(buffer)) > 0)
    bos.write(buffer, 0, len);
    System.out.print("#");
         for(int y =0 ; y < buffer.length ; y++)
    char s =(char) buffer[y];
    System.out.println("character:"+s);
    bis.close();
    bos.flush();
    bos.close();
    socket.close();
    System.out.println("\nDone!");
    catch(Exception x)
    x.printStackTrace();
    } /* end of main */
    }/* end of class */
    what is wrong can please anyone tell me??????

    As I don't know how long a record is, that's not a very useful answer. How many bytes are you expecting and how many do you actually get?

  • Reading / Writing files using Sockets

    Hi there guys,
    I am fairly new to this forum. I have been having a problem for the past three days. I am implementing a client/server implementation using Sockets which is a submodule of a project I am working on. What I want is that a files content are read and transferred over the network to the server that writes it down to a different file .
    What the code presently does is :
    <<<<Client Code >>>>
    It reads a file input.txt and sends the content over the network to the server.
    <<<< Server Code >>>
    It reads the incoming data from the client and writes the data out to a file called output.txt
    What I want now is that the server should read the file output.txt and send the contents to the client which reads it and then writes it down as a new file called serverouput.txt . After that I want to compare and see of the size of input.txt and serveroutput.txt . If both are same that means that data has been written reliably to the server.
    I have been trying to implement it for a long time and nothing seems to work out. I am posting the code for both client and server below. Any help in finalising things would be really appreciated.
    CLIENT CODE
    import java.awt.Color;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Date;
    import java.io.*;
    import java.net.*;
    class sc {
    static final int PORT = 4444;          //Change this to the relevant port
    static final String HOST = "127.0.0.1";
         //Change this to the relevant HOST,
    //(where Server.java is running)
    public static void main(String args[]) {
    try {
    System.out.print("Sending data...\n");
    Socket skt = new Socket(HOST, PORT);
                   // Set the socket option just in case server stalls
    skt.setSoTimeout ( 2000 );
                   skt.setSoKeepAlive(true);
    //Create a file input stream and a buffered input stream.
    FileInputStream fis = new FileInputStream("input.txt");
    BufferedInputStream in = new BufferedInputStream(fis);
    BufferedOutputStream out = new BufferedOutputStream( skt.getOutputStream() );
    //Read, and write the file to the socket
    int i;
    while ((i = in.read()) != -1) {
    out.write(i);
    //System.out.println(i);
                   // Enable SO_KEEPALIVE
    out.flush();
    out.close();
    in.close();
    skt.close();
    catch( Exception e ) {
    System.out.print("Error! It didn't work! " + e + "\n");
              catch( IOException e ) {
    System.out.print("Error! It didn't work! " + e + "\n");
    SERVER CODE
    import java.awt.Color;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Date;
    import java.io.*;
    import java.net.*;
    class ClientWorker implements Runnable {
    private Socket client;
    ClientWorker(Socket client) {
    this.client = client;
    public void run(){
    try      {
    FileOutputStream fos = new FileOutputStream("output.txt");
    BufferedOutputStream out = new BufferedOutputStream(fos);
    BufferedInputStream in = new BufferedInputStream( client.getInputStream() );
    //Read, and write the file to the socket
    int i;
    while ((i = in.read()) != -1) {
    out.write(i);
    //System.out.println(i);
    System.out.println("Receiving data...");
    out.flush();
    in.close();
    out.close();
    client.close();
    // srvr.close();
    System.out.println("Transfer complete.");
    catch(Exception e) {
    System.out.print("Error! It didn't work! " + e + "\n");
    class ss1 {
    ServerSocket server = null;
    ss1(){ //Begin Constructor
    } //End Constructor
    public void listenSocket(){
    try{
    server = new ServerSocket(4444);
    } catch (IOException e) {
    System.out.println("Could not listen on port 4444");
    System.exit(-1);
    while(true){
    ClientWorker w;
    try{
    w = new ClientWorker(server.accept());
    Thread t = new Thread(w);
    t.start();
    } catch (IOException e) {
    System.out.println("Accept failed: 4444");
    System.exit(-1);
    protected void finalize(){
    //Objects created in run method are finalized when
    //program terminates and thread exits
    try{
    server.close();
    } catch (IOException e) {
    System.out.println("Could not close socket");
    System.exit(-1);
    public static void main(String[] args){
    ss1 frame = new ss1();
         frame.listenSocket();
    }

    ............................................. After that I want to
    compare and see of the size of input.txt and
    serveroutput.txt . If both are same that means that
    data has been written reliably to the server.You don't need to do this. TCP/IP ensures the reliable transmition of data. By using a socket you are automaticaly sure that the data is reliably transmitted (Unless there is some sort of exception).
    To get the size of the files you can use a File object. Look it up in java.io package in API documentation.
    java-code-snippet (without error checking)
    File clientFile = new File("input.txt");
    clientFile.length();

  • How to Transfer files using socket remote method invocation?

    hello guys,
    i am working on java sockets...and i need to send and receive files though Java RMI. how will i go with it....
    Please do help me in this regard
    Edited by: sandeep_genevsoftech on Apr 4, 2008 4:32 AM

    I am also developing a similar application of file transfer but using sockets in place of RMI.The file gets transfered if i run client and server on same m/c(as localhost),but shows "access denied" if run on different m/c.I suppose some security policies need to be set.Can anybody help?

  • Validating a sender file using a JAVA UDF in PI message mapping

    Hi,
    I have a sender file with one header and multiple detail lines. I have been asked to read a tag on the header which contains the total number of detail lines.
    I then loop round the detail lines counting the total number. If the total number of detail lines matches the total value in the header tag then XI can process the files otherwise the mapping should raise an exception.
    Has anyone encountered this before and if so do you have an example of the Java code you used ?
    Many thanks
    Mark

    Hi,
    You can refer to this link for a similar kind of requirement but it is of inserting newline at the end of each line.
    But you can customize the code for ur use.
    Please refer https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/howtoappendCarriageReturnintheendofeachtagofxml+file.
    Now in this code you can use the logic something like this.
    1. You must be knowing the header tag where your actual Total Count number resides. Put it in some variable, while looping over xmlString. Don't put anything in resultset until u come to actual line items.
    2. Now start adding your counter. At the end of this loop you will have 2 variable. 1 contains the actual given total counts from header and other will contain calculated count.
    3. Match it in if condition , if not matched do nothing no resultset append or may b you can send some exception or if matched send the actual XML.
    Hope this will help you a bit.
    Regards
    Aashish Sinha

  • HOW TO TRANSFER FILE USING SOCKET

    HI....
    My project is backup sever
    I want to take backup of any number of file and of any size please tell
    me solution how i can do this for this i done the zip file of backup.
    I done this but i face some problem...
    regards
    Ahire sharad

    ahire, if what you want is to transfer a file over a socket here's an example of a sender. If you need the reciever code too, let me know.
    public void run()
              FileInputStream inFile = null;
              try
                   Boolean done = false;
                   int inByte;
                   inFile = new FileInputStream(filename);
                   byte[] byteBuffer = new byte[128000];
                   while(!done)
                        inByte = inFile.read(byteBuffer, 0, byteBuffer.length);                         
                        if (inByte == -1)
                             done = true;
                        else
                             out.write(byteBuffer, 0, inByte);
                   inFile.close();
              catch (Exception e)
                   try {inFile.close();}
                   catch (Exception ex) {ex.printStackTrace();}
                   try{Thread.sleep(10);}catch(Exception ex){}
                   JOptionPane.showMessageDialog(null,"Error sending file " + filename + "\nError: " + e.toString(),"Error", JOptionPane.ERROR_MESSAGE);
         }Pd: As I see your english isn't so good... I can help you in spanish or italian too... just let me know. Regards,
    Message was edited by:
    doy2001

  • My iMac receives files using airdrop but cannot send files using airdrop

    i have a macbook pro and imac both 2011 and using latest software. i can send files from macbook pre to imac no problem but cannot send files from imac to macbook pro using airdrop. also i have the same problem sending files between my samsung galaxy and imac. can send files to imac from samsung but cannot send from imac to samsung. obviously a setting on imac is the cause of both problems.... any help would be appreciated

    Are these photos? Then you will find them in the photos app. Pages documents? You will find them in Pages, etc.

  • How do I send files using Bluetooth on the new Blackberry Curve 3G OS 6?

    Hello everyone,
    I have recently updated my BB Curve (9300) software from version 5.0 up to version 6.0 Bundle 1478. I tried to send normal files (pics, videos or even music) via Bluetooth to another device (whether PC or another BB phone) but I could not find the "Send Using Bluetooth" option that I used to have on my old software version (5.0). Also when I tried to receive any file I could not find the option "receive using Bluetooth" that was on version (5.0). Is there any solution? How to send files over Bluetooth on the new BB Operating System (6.0)?
    Thanks 

    Hi and Welcome to the Forums!
    Please double check the steps in this KB to ensure you are following them all:
    KB05409 Transfer a file using Bluetooth technology between two BlackBerry smartphones
    As you discovered, for receipt, there is no longer, under 6.0, the requirement for "Receive Using BT" step on the receiving BB.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Error in sending file using FCC

    Hi all,
    i am doing the file content conversion scenario from saptechnicalcom
    my message type is as follows:
    MT_File_Cont_Conv
         Record
            Emp_Header
              Key
              Emp_Id
              Emp_Name
    File is not picked up by the sender file adapter and in RWB communication channel monitoring i am getting the following error:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Emp_Header.keyFieldValue': no value found
    anybody plz provide me some input to rectify this error
    regards
    sandeep sharma

    >
    sandeep sharma wrote:
    > hi
    > FCC parameters are as follows
    >
    > Document Name:                    MT_File_Cont_Conv
    > Recordset Name:                      Record
    > Recordset Structure:                   Emp_Header,1
    > Recordset sequence:                    Ascending
    > Recordset per message:                 1
    > Key Field Name:                         Key
    >
    >
    >
    >
    > Emp_Header.fieldFixedLengths                   1,6,10
    > Emp_Header.endSeparator          'nl'
    > Emp_Header.fieldNames          Key,Emp_Id,Emp_Name
    > Emp_Header.keyFieldValue                      1
    > Emp_Header.keyFieldInStructure                 ignore
    make sure there is no white space before or after
    Emp_Header.keyFieldValue and also the value 1
    Even a single whitespace can cause an issue

Maybe you are looking for

  • Can't get LR3 to import photos from one external hard drive to another?

    I'm wanting to move thousands of raw photos from a folder in one external hard drive to another folder in a different external hard drive so all my photos are in one photo folder instead of two.  I've gone through the importing routine inside of ligh

  • WCI Analytics Install/Config Webinar - Recorded version ****Available****

    Hello, Thanks to all who attended. The recorded version of this Webinar is now available here: https://strtc.oracle.com/imtapp/app/arc_pb_hub.uix?mID=6665928&src=app/arc_pub&action=pb Based on the success of the OAM / WCI integration webinar, the sec

  • Upgrade DB2 database from 9.1 to 10.5

    Dear All, We are using Ecc6 with db2 database 9.1 now we want to upgrade database from 9.1 to 10.5. Is it possible to upgrade database & what are those steps are required for this operation. We are waiting your valuable support in this regards. Regar

  • CP5 - Continue action not working

    I am pretty sure this was working last week and now its not. The set up is that I hide the playbar on page enter (assign-->cpCmndShowPlaybar=0), then there is a click box that suppose to show the playbar and continue after the 1st incorrect try via a

  • How to check Berkeley db stats?

    Is there a way of seeing stats for Bdb like cache hits/misses etc? I found this article (http://pybsddb.sourceforge.net/ref/am_conf/cachesize.html), but I don't know how to access it from the java edition. Another question is, in the java edition, is