Recieving Socket Data Question

How can i recieve a large amout of Data from a socket.getInputStream()??
I use DataInputStream as my Main Constructor...

One of the big problems with using Sockets is you have
to know a lot about the data you are receiving just to
get the commication to work.
One thing you might do is check to make sure the
server application is flush()'ing its output stream
when it writes to it.
If you know that your data will 4096 bytes, you can do
something like this:
ByteArrayInputStream in = new ByteArrayInputStream(
socket.getInputStream());hhhmmm.... i think there an error here... on constructing ByteArrayInputStream
ByteArrayInputStream(byte[] buf); it doesnt seems to recognise inputstream!!! need advice..
byte[] data = new byte[4096];
int bytesRead = in.read( data, 0, 4096 );

Similar Messages

  • I am new to the ethernet communicat​ion using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.

    i am new to the ethernet communication using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.
    Solved!
    Go to Solution.

    Hi thanks for the help.
    Actually i am trying to send 10 sine signals from server pc to client pc. So i will bundle 10 signals in server pc and send it and in client pc i am unbundling it and need to save in TDMS format.
    Till unbundling i was able to do. TDMS format it is saving only last value. I need to save all the values. Kindly help me on same. I am attaching both the VI.
    Attachments:
    Client.vi ‏62 KB
    Server.vi ‏252 KB

  • Socket data transfer too long

              hi
              when i start up the 1st WLS for clustering, the following exception message is
              shown constantly:
              <MulticastSocket> Error sending blocked message
              java.io.IOException: A message for a socket data transfer is too long.
              at java.net.PlainDatagramSocketImpl.send(Native Method)
              what could cause the exception and is it a fatal error?
              appreciate if any help can be given.
              thanx ...
              yunyee
              

              hi
              i'm running on AIX 4.3.3.
              the jdk version is 1.2.2
              Viresh Garg <[email protected]> wrote:
              >Could you also post your OS and JDK version.
              >Viresh Garg
              >
              >Yun Yee wrote:
              >
              >> hi Shiva
              >>
              >> i'm running WLS5.1. and i have Commerce Server 3.1 as well.
              >> i have service pack 8.
              >> can the exception be rectified by service packs?
              >>
              >> thanx
              >>
              >> yunyee
              >>
              >> "Shiva" <[email protected]> wrote:
              >> >
              >> >Hi,
              >> >Would help if you could also tell about the WLS version, Service Packs
              >> >and the
              >> >environment you are using.
              >> >
              >> >Shiva.
              >> >
              >> >"Yun Yee" <[email protected]> wrote:
              >> >>
              >> >>hi
              >> >>
              >> >>when i start up the 1st WLS for clustering, the following exception
              >> >message
              >> >>is
              >> >>shown constantly:
              >> >><MulticastSocket> Error sending blocked message
              >> >>java.io.IOException: A message for a socket data transfer is too
              >long.
              >> >> at java.net.PlainDatagramSocketImpl.send(Native Method)
              >> >>
              >> >>what could cause the exception and is it a fatal error?
              >> >>
              >> >>appreciate if any help can be given.
              >> >>thanx ...
              >> >>
              >> >>yunyee
              >> >>
              >> >
              >
              

  • Unlimited Data Questions...

    Hey guys,
    I have a few questions regarding ulimited data on my plan. I am on a plan with one other person. We share at total of 400 anytime minutes. We each have our own UNLIMITED data plans at $30 a month. We had both got Droid 1/Milestones when they came out. A year and some went by and i had recieved a Upgrade card in the mail. I used the card to purchase my Droid RAZR on 11/11/11. I was still enrolled in the UNLIMITED data plan at that point. Unlimited data was nixed as a plan on 11/28/11 which didnt effect me then but it does NOW as i am trying to upgrade to a newer phone due to speed and camera clearity. The person i am on the plan with still has their Droid 1/Milestone and ISN'T planning on upgrading ANYTIME soon. I recently recieved a text saying i could upgrade but would lose data. I use anywhere from 4.6-5.8gb of data a month because i do not have WiFi in my place of work, school, or at home.
    For my questions:
    1.) If i upgrade and renew for 2 years with a new phone i lose my unlimited data, correct?
    2.) If the other person on my contract upgrades and then we switch phones she will lose unlimited as well
         but will that effect my phone number plan?
    3.) I was told that i would be paying $810 total over 18 months if i upgrade to a higher data gb plan because
         it would jump from $30 a month to $75 a month which is $45 more. $45 times 18 months equals $810.
         Would it be more cost effective to BUY a phone at RETAIL and then activate it?
         3a.) Would Verizon charge for that?
         3b.) Would that remove my grandfather?
         3c.) Was the information i recieved from Verizon correct?

    Bawkinator wrote:
    Hey guys,
    For my questions:
    1.) If i upgrade and renew for 2 years with a new phone i lose my unlimited data, correct?
    2.) If the other person on my contract upgrades and then we switch phones she will lose unlimited as well
         but will that effect my phone number plan?
    3.) I was told that i would be paying $810 total over 18 months if i upgrade to a higher data gb plan because
         it would jump from $30 a month to $75 a month which is $45 more. $45 times 18 months equals $810.
         Would it be more cost effective to BUY a phone at RETAIL and then activate it?
         3a.) Would Verizon charge for that?
         3b.) Would that remove my grandfather?
         3c.) Was the information i recieved from Verizon correct?
    1) Yes
    2) Each line has their own contract. You can swap upgrades dates. The person who the upgrade originally belonged to will lose their unlimited data.
    3) Not sure where the 18 months come in since you can only upgrade once every 24 months. The 5 GB plan is $50 a month( or $20 more ) and the 10 GB plan is $80 a month( or $50 more )
    3a) Charge for what? data? More data you use the more it costs. That's how a tiered data plan works.
    3b) because Verizon wants to get people off of unlimited data plans. This policy has been in effect for nearly 11 months now.
    3c) yes and no.

  • Socket Communication Question

    Hi, I am new to using sockets and somewhat new to Java in general.
    How does one go about setting up a client/server system so that:
    - The server will wait for connections
    - After it accepts the connection, will read the first request sent
    - After interpreting this request, I'd like to send a reponse BACK to the client
    - After receiving this response, the client will UPLOAD a file over the socket
    I've got a https server a client running, but it is more of a single response per request kind of setup. Sorry if this seems like a silly question, I am somewhat new.
    Chuck Reed

    * PingServer.java
    * Created on December 1, 2001, 1:47 PM
    package com.sas.planetation.servers.ping;
    import com.sas.util.socket.*;
    import com.sas.planetation.data.*;
    import com.sas.planetation.exceptions.*;
    import com.sas.planetation.servers.*;
    import java.io.*;
    import java.util.*;
    import java.net.*;
    * @author  Scott Shaver
    * @version
    public class PingServer implements ClientConnectionHandler, CommandInputListener{
        public static final String CONFIG_FILE_NAME = "pingserver.cfg";
        public static final String PROP_LISTEN_PORT = "pingserver.listeningport";
        public static final String PROP_ADMIN_PORT = "pingserver.adminport";
        public static final String PROP_BYTE_COUNT = "pingserver.sendbytecount";
        private Properties properties = null;
        private MultiSocketServer pingSocket = null;
        private MultiSocketServer adminSocket = null;
        private int pingPort = 0;
        private int adminPort = 0;
        private int pingByteCount = 0;
        private CommandInput cmdInput = null;
        private String configDirectory = null;
        /** Creates new PingServer */
        public PingServer(String configDir) {
            super();
            configDirectory = configDir;
        public void setPingSocket(MultiSocketServer server) {
            pingSocket = server;
        public void setAdminSocket(MultiSocketServer server) {
            adminSocket = server;
        public MultiSocketServer getPingSocket() {
            return pingSocket;
        public MultiSocketServer getAdminSocket() {
            return adminSocket;
        public void setPingByteCount(int count) {
            pingByteCount = count;
        public void setPingPort(int port) {
            pingPort = port;
        public void setAdminPort(int port) {
            adminPort = port;
        public int getPingPort() {
            return pingPort;
        public int getAdminPort() {
            return adminPort;
        public Properties getProperties() {
            return properties;
        public void startUp() {
            try
                postMessage("-------------------------------------");
                postMessage("Planetation Ping Server");
                postMessage("-------------------------------------");
                postMessage("Loading configuration.");
                properties = loadConfiguration();
                String data = getProperties().getProperty(PROP_BYTE_COUNT);
                int bc = Integer.parseInt(data.trim());
                if(bc<0 || bc>127)
                    bc=1;
                postMessage("Setting ping byte count to "+bc+".");
                if(data!=null)
                    setPingByteCount(bc);
                data = getProperties().getProperty(PROP_LISTEN_PORT);
                if(data!=null)
                    setPingPort(Integer.parseInt(data.trim()));
                postMessage("Setting client listening port to "+getPingPort()+".");
                setPingSocket(new MultiSocketServer(this,getPingPort()));
                postMessage("Starting client listening thread.");
                getPingSocket().start();
                data = getProperties().getProperty(PROP_ADMIN_PORT);
                if(data!=null)
                    setAdminPort(Integer.parseInt(data.trim()));
                postMessage("Setting admin listening port to "+getAdminPort()+".");
                setAdminSocket(new MultiSocketServer(this,getAdminPort()));
                postMessage("Starting admin listening thread.");
                getAdminSocket().start();
                postMessage("Server is started and ready.");
                postMessage("-------------------------------------");
                cmdInput = new CommandInput(this);
                cmdInput.startUp();
            catch(Exception x)
                postMessage("Error during server boot.\n"+x);
                System.exit(0);
        * @param args the command line arguments
        public static void main (String args[]) {
            if(args.length!=1)
                System.out.println("Error: Directory location of the config file must be provided.");
                return;
            PingServer ps = new PingServer(args[0]);
            ps.startUp();
        public void postMessage(String msg) {
            System.out.println(msg);
        public Properties loadConfiguration() throws ConfigNotFoundException {
            Properties properties = new Properties();
            File cf = new File(configDirectory,CONFIG_FILE_NAME);
            if(!cf.canRead())
                throw new ConfigNotFoundException("Read permissions not set for "+cf.toString()+".");
            try
                FileInputStream fis = new FileInputStream(cf);
                BufferedInputStream bis = new BufferedInputStream(fis);
                properties.load(bis);
                bis.close();
            catch(Exception x)
                throw new ConfigNotFoundException("Error reading "+cf.toString()+".\n"+x);
            return properties;
         * Called when a client connection is accepted in the run method.
         * Sub-classes of this class should define this method to handle
         * the client requests. Note that while this method is being executed
         * no more client connections will be accepted so this method must
         * complete quickly.
        public void handleClientConnection(SocketServer server, Socket s) {
            if(server.getPort()==getPingPort())
                postMessage("Received client connection.");
                PingServerClientThread ct = new PingServerClientThread(s,pingByteCount);
            else if(server.getPort()==getAdminPort())
                postMessage("Received admin connection.");
                try
                    DataInputStream is = new DataInputStream(s.getInputStream());
                    int type = is.readInt();
                    switch(type)
                        case CommunicationDataTypes.SERVER_STOP:
                            ServerStop ss = new ServerStop();
                            ss.readData(is);
                            shutDownServer();
                            break;
                catch(IOException x)
                    postMessage("Error reading admin connection data.\n"+x);
                catch(InvalidFileFormatException iffx)
                    postMessage("Error reading admin connection data. InvalidFileFormatException\n"+iffx);
        public void shutDownServer() {
            postMessage("Stopping server.");
            pingSocket.stop();
            adminSocket.stop();
            cmdInput.stop();
            System.exit(0);
        public void handleCommandInput(String cmd) {
            postMessage("Processing Command: "+cmd);
            if(cmd.equals("stop"))
                shutDownServer();
            else if(cmd.equals("?") || cmd.equals("help"))
                postMessage("stop - shutdown the server");
                postMessage("? or help - show the command help");
            else
                postMessage("Command is not recognized. Type help or ? for command list.");
    }

  • 7.9.6.1 Financial Analytics - JDE - Extract Dates question

    Hi all,
    Implementation of 7.9.6.1 Financial Analytics + Procurement and Spend Analytics
    OLTP: JDE E9
    OLAP DB: Oracle 11g
    We were trying to adjust the # of prune days for an incremental load, when we discovered the change was having no effect.
    Our situation - JDE*
    Looking at the parameters in DAC, we found that the incremental condition in the SDEs is:
    date >= *$$LAST_EXTRACT_JDEDATE*
    In DAC, this parameter expands to:
    TO_NUMBER(TO_CHAR(TO_DATE('@DAC_$$TGT_REFRESH_DATE'), 'DDD'))+(TO_NUMBER(TO_CHAR(TO_DATE('@DAC_$$TGT_REFRESH_DATE'), 'YYYY')) -1900) * 1000
    If one keeps digging,
    +$$TGT_REFRESH_DATE = @DAC_TARGET_REFRESH_TIMESTAMP in custom format, MM/DD/YYYY+
    Compared to EBS*
    Now, if I look at the *$$LAST_EXTRACT_DATE* parameter (used in EBS SDEs)
    It expands to:
    +@DAC_SOURCE_PRUNE_REFRESH_TIMESTAMP in custom format, MM/DD/YYYY+
    Conclusion and question*
    Obviously the Julian date conversion is required in $$LAST_EXTRACT_JDEDATE, but apparently the prune days are being considered in $$LAST_EXTRACT_DATE and not in $$LAST_EXTRACT_JDEDATE.
    An obvious fix is to use @DAC_SOURCE_PRUNE_REFRESH_TIMESTAMP in $$LAST_EXTRACT_JDEDATE, but I don't know if that would have any side effects. I'll test it.
    I'll raise a SR with Oracle, but wanted to check if you guys had seen this before.
    Thanks, regards.-
    Alex.-
    Edited by: Alejandro Rosales on Feb 22, 2011 5:57 PM

    Hi Alejandro,
    Maybe this has been updated/correct in 7.9.6.2. Later today I will be in the office and can check in a VM image.
    I'll update the thread as soon as soon as I have checked this out.
    Regards,
    Marco Siliakus

  • Unsubsidized Activation and Unlimited Data Question

    I'm currently an AT&T customer, and want to move to Verizon before the tiered data begins. I'd like a 4G phone, but the offerings right now are kind of sparce. So I'm thinking of buying a Droid 2 Global at full cost, and upgrading to the bionic whenever it comes out, but I've got a couple questions:
    1. If I buy an unsubsidized phone and don't need to enter into a 2-year contract, will the unlimited data plan for month-to-month still be active after July 7?
    2. When the Bionic finally comes out, will I be eligible for the subsidized cost? And can I keep the unlimited data for a 2-year contract?
    Thanks!

    SweetJebus wrote:
    I'm currently an AT&T customer, and want to move to Verizon before the tiered data begins. I'd like a 4G phone, but the offerings right now are kind of sparce. So I'm thinking of buying a Droid 2 Global at full cost, and upgrading to the bionic whenever it comes out, but I've got a couple questions:
    1. If I buy an unsubsidized phone and don't need to enter into a 2-year contract, will the unlimited data plan for month-to-month still be active after July 7?  maybe, they are saying yes, but for ho wlong its not certain
    2. When the Bionic finally comes out, will I be eligible for the subsidized cost? And can I keep the unlimited data for a 2-year contract?  yes
    Thanks!

  • Socket data corruption

    I've a problem with sockets that I can reproduce with this simple code:
    public class Server {
    public static void main(String[] args) throws Exception {
    ServerSocket server = new ServerSocket(8888);
    System.out.println("Listening...");
    Socket socket = server.accept();
    InputStream in = socket.getInputStream();
    byte[] data = new byte[16 * 1024];
    while (true)
    int i = in.read();
    if (i != 202)
    throw new Exception("Error: " + i);
    else
    System.out.println("Ok");
    in.read(data, 0, 16 * 1024);
    public class Client {
    public static void main(String[] args) throws Exception {
    System.out.println("Connecting...");
    Socket socket = new Socket("localhost", 8888);
    OutputStream out = socket.getOutputStream();
    byte[] data = new byte[16 * 1024];
    while (true)
    out.write(202);
    out.write(data, 0, 16 * 1024);
    The "Client" class connects to the socket listening in "Server" class and send a byte and a 16k block in a loop. The "Server" receives the data and verifies the byte (It should be 202). At some point the test fails receiving a "0".
    I'm using JRE version 1.4.2_04-b05 under Windows XP.
    Any suggestions?
    Thanks,
    Juan Wajnerman

    You can't predict what length a read will produce, it
    may return any number of bytes up to the number
    requested. You're right! Thanks... I don't know how I could forget that :-(
    The writes also won't necessarily send
    anything into the network if you don't do a flush.
    Note that out.write(data, 0, 16 * 1024); will write
    16K of whatever is in the buffer.Thank you very much!
    Juan

  • Problems Reading SSL  server socket  data stream using readByte()

    Hi I'm trying to read an SSL server socket stream using readByte(). I need to use readByte() because my program acts an LDAP proxy (receives LDAP messages from an LDAP client then passes them onto an actual LDAP server. It works fine with normal LDAP data streams but once an SSL data stream is introduced, readByte just hangs! Here is my code.....
    help!!! anyone?... anyone?
    1. SSL Socket is first read into  " InputStream input"
    public void     run()
              Authorization     auth = new Authorization();
              try     {
                   InputStream     input     =     client.getInputStream();
                   while     (true)
                   {     StandLdapCommand command;
                        try
                             command = new StandLdapCommand(input);
                             Authorization     t = command.get_auth();
                             if (t != null )
                                  auth = t;
                        catch( SocketException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection closed: " + e );
                             close( e );
                             break;
                        catch( EOFException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection close: " + e );
                             close( e );
                             break;
                        catch( Exception e )
                             //Way too many of these to trace them!
                             Message.Error( "Command not processed due to exception");
                             close( e );
                                            break;
                                            //continue;
                        processor.processBefore(auth,     command);
                                    try
                                      Thread.sleep(40); //yield to other threads
                                    catch(InterruptedException ie) {}
              catch     (Exception e)
                   close(e);
    2 Then data is sent to an intermediate function 
    from this statement in the function above:   command = new StandLdapCommand(input);
         public StandLdapCommand(InputStream     in)     throws IOException
              message     =     LDAPMessage.receive(in);
              analyze();
    Then finally, the read function where it hangs at  "int tag = (int)din.readByte(); "
    public static LDAPMessage receive(InputStream is) throws IOException
        *  LDAP Message Format =
        *      1.  LBER_SEQUENCE                           --  1 byte
        *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
        *      3.  ID                                      --  variable length
        *      4.  LDAP_REQ_msg                            --  1 byte
        *      5.  Message specific structure              --  variable length
        DataInputStream din = new DataInputStream(is);
        int tag = public static LDAPMessage receive(InputStream is) throws IOException
        *  LDAP Message Format =
        *      1.  LBER_SEQUENCE                           --  1 byte
        *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
        *      3.  ID                                      --  variable length
        *      4.  LDAP_REQ_msg                            --  1 byte
        *      5.  Message specific structure              --  variable length
        DataInputStream din = new DataInputStream(is);
           int tag = (int)din.readByte();      // sequence tag// sequence tag
        ...

    I suspect you are actually getting an Exception and not tracing the cause properly and then doing a sleep and then getting another Exception. Never ever catch an exception without tracing what it actually is somewhere.
    Also I don't know what the sleep is supposed to be for. You will block in readByte() until something comes in, and that should be enough yielding for anybody. The sleep is just literally a waste of time.

  • IPhoto 11 Event Date Question

    I have a question about iPhoto 11 events.  My camera was set to the wrong date for part of an event.  I went in and did a batch change of the time and date of the affected photos.  However, the date range beneath the title of the event still has the old erroneous date, and the event gets sorted by this date range.  Is there a way to go in and change that date range under the title of the event?  I go to the event and click on info, and the event shows the correct date range for the pics, but it is not changing the date range under the title.  Thanks for any help in advance.

    Thank you - I had the same problem and found your helpful answer.  However, this is actually a work around to a bug in iPhoto - it's not how the Apple Support pages say it works and common sense says that if you change all the dates in an event it should sort to the right place without being re-created.  Can you help me with one more thing - how do I bring this to Apple's attention so that they fix it in a future release?
    Thanks again for the help.

  • Date question in Oracle

    hi
    how to insert (text) time: 09:44:02 and date:11/09/2007 to date filed in Oracle ?
    i have field Tdate (date) and Ttime (date) in oracle
    thanks in advance
    Edited by: GoldSoft on 16:33 22/08/2011

    Gold, I think SB has answered your question. You use to_date to pass the character representation of a date to Oracle and identify what format the date is in using a format mask. To get a date data type out of Oracle and present it any way you want you use the to_char function and a format mask to tell Oracle how to display the date information.
    You can find the date format mask characters listed in the SQL Language manual. Just look up to_date or to_char and there should be a reference to the available masks.
    HTH -- Mark D Powell --

  • Date Question

    I need to run a query to get certain information from my Oracle table that's over 9 months old. My query doesn't seem to be working properly. Below is my query:
    ---Getting today's date----
    currentDate = new SimpleDateFormat("MM/dd/yyyy").format(new java.util.Date());
    -----query to check for drawings that are over 9 months old-------
    queryRptchoice = "SELECT Drawing.dwgID, Personnel.prsnlID, Drawing.PMDwgNum, Drawing.dwgSize,";
    queryRptchoice += " Drawing.Title, Personnel.fname, Personnel.lname, Checked_Out.modNum,";
    queryRptchoice += " Checked_Out.chkoutDate, Checked_Out.Project, Checked_Out.AEFirm, Checked_Out.AEName";
    queryRptchoice += " FROM AJM.Drawing, AJM.Personnel, AJM.Checked_Out WHERE Drawing.dwgID = Checked_Out.dwgID";
    queryRptchoice += " AND Checked_Out.prsnlID = Personnel.prsnlID AND Drawing.isCheckedOut = 'yes'";
    queryRptchoice += " AND Checked_Out.isCheckedOut = 'yes'";
    queryRptchoice += " AND chkoutDate <= TO_DATE('" + currentDate + "', 'MM/DD/YYYY')";
    queryRptchoice += " AND chkoutDate < ADD_MONTHS(TO_DATE('" + currentDate + "', 'MM/DD/YYYY'), -9)";
    Any help would be greatly appreciated.

    This is a common question. Go into the JDBC forum and put the words date and oracle in the search forum box. Press search. You have a few options. You can format the date differently or use a preparedstatement.

  • Variant to Data question

    This is a LV6.1 question. For an application I'm debugging, flatten data is
    being used on a menu ring control. The menu ring data is unflattened using
    Variant to Data. What I get back from the unflatten process is the numeric value
    of the menu rings index, which is what I would expect, no problem there.
    What I'd like to also get back from the unflatten process, would be the
    string array of names for the menu ring that was flattened. Can someone
    suggest how I can do this?

    The data is only the number of the element chosen (a blue wire) and not any more data about the element. To get the list of strings you should use the Strings[] property node. Then, you can flatten and save that array.
    Another option is to pass (or obtain) the reference to the ring to whereever you're using it and then use a property node to extract the data you need.
    A third option is to use an enum which keeps the data inside the wire, but that means you will need to have the exact same enum on the other side (which means it probably won't help you). You can do this by making the enum a typedef.
    What are you trying to accomplish?
    Try to take over the world!

  • Basic stream/file/socket closing question

    If you create a stream, it's generally considered good practice to call close() on that stream once you're done with it. the same for files and sockets. My question is what happens if I don't keep a reference to the object that needs closing. For example:
    BufferedInputStream bis = new BufferedInputStream(new FileInputStream(new File("myfile.txt")));Clearly, I can close() bis. But does doing so close the FileInputStream, and the File? OR, will those remain open until the garbage collecter gets around to closing them. If not, is it considered good practice to keep references around for the sole purpose of explicitly closing the resource so you don't have to wait for garbage collection?
    Finally, is it necessary to close() sockets/files/streams prior to calling System.exit()? It would save me a great deal of code in my exception handlers if I could simply exit() without explicitly freeing the resources I've opened prior to hitting the exception.
    Thanks.

    You should only need to call close on bis. That method call should take care of calling close on the underlying stream.

  • Socket data send-receive problem

    I hv J2ME client application and vb.net socket server application communicating over sockets. Client connection is made successfully but cant send data to server. When I exit from client application then server application receives those data. (application works pretty fine on emulator but on real device gives above problem)
    WTK Sample application gives same problem when I tried.
    Any idea abt this problem ? gr8 ful if u have some working code.

    yeah your idea works..
    I hv used flush() method and now it works (Live on Nokia E62) nicely.
    But to keep connection opened during whole application I dont close InputStream/OutputStream connection. I close it only at EXIT of application so that I get optimum performace in transactions.

Maybe you are looking for

  • Cannot write to external HD from MacBook.  Error Code -36

    Whenever I attempt to write to my Western Digital External HD (500 gb formatted HFS+m, USB 2.0 connection), I receive a Finder Error: "The Finder cannot complete the operation because some data in "filename" could not be read or written. (Error code

  • Conversion of Sales Orders with Original ATP Confirmation Dates/ Quantities

    Hi Please suggest best practice to maintain ATP confirmation dates/ quantities during sales order conversion. We have committed schedule lines in a legacy SAP system. Now we want to maintain the exact same dates/ quantities when loading these dates i

  • Expanding Quicksilver used for internet - is it worth it?

    I still have my trusty old G4 Quicksilver. It's now used by my 6 year old for the internet. The only thing I've done to it over the yeas is give it extra memory - it currently has 1.12GB. Also replaced the CD drive for a DVD drive. It has a tiny inte

  • Connect n8 to vista 7

    Hello, Got today my new N8-phone. Installed the latest version of Ovi suite. When connecting my phone to my laptop with windows vista i get the message that windows needs to intall driver software for my phone. locating and installing driver software

  • Need to disable Bluetooth

    I have a customer who needs to disable Bluetooth on his new Macbook Pro for work in a security zone. We have renamed the IOBluetoothFamily.kext and IOBlutetoothHIDDriver.kext files (System/Library/Extensions) but the device can still be turned on in