Ask Experts Questions for FREE Help !
Ask
    Rajeev18991's Avatar
    Rajeev18991 Posts: 1, Reputation: 1
    New Member
     
    #1

    Aug 22, 2013, 03:50 AM
    How to use both Printwriter and BufferedOutputStream at same time in Java Socket Pgm?
    Im developing a project in wireless sensor network, here I need to know all clients connected with server, so, whenever server sending message, I have attached clients name in the form of regular expression, after that the client extract the each clients name and display in its own window. . So for that I'm using Printwriter, but I want to send a file too.. that is I'm sending in the form of bytes, so the printwriter getting single line only, so I'm using BufferedOutputStream. .
    All are working fine, but client not sending bytes as well as the server not listening for file. . That is my problem. .

    Please anyone help me..

Check out some similar questions!

PrintWriter object throws FileNotFoundException [ 0 Answers ]

I keep getting a FileNotFoundException when I input this code in netbeans. I created a "File" object with the location of a text file on my computer and it found it. But when I use that same "file" object as a location for a PrintWriter Object, I get a"FileNotFound Exception. Can anyone help me? ...

1 socket on chandelier blew out, but socket appears to be fixed by rivet; how change? [ 1 Answers ]

I've moved this Williamsburg-style brass chandelier from home to home with us. Last moved it in 1992. It uses small base bulbs, one of which just blew out after I tightened all of them, then restored power. Bulb component broke off from base and I removed base by twisting with a longnose plier....

Java Socket Working [ 0 Answers ]

Hi, I am developing a chat like project and project have features as text chatting, voice chatting, file send and download. All will work on TCP/IP. But I am confused in that do I have to create the only one socket run all this features? Will it work? Or do I have to create different sockets for...

Convert A15 intermediate socket to A19 standard socket [ 1 Answers ]

I have one of those hampton bay fans with the stupid A15 intermediate base bulbs, I can only find bulbs like this that are for appliances like microwaves locally. There was a thread for this same question and it looks like the guy found a solution but the link was removed here's that thread...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.