Results 1 to 2 of 2
  1. #1
    swing is offline Member
    Join Date
    Oct 2014
    Posts
    1
    Rep Power
    0

    Default Returning a response

    I need to write a string or binary data to the client to return a response, so I know that the socket gives an InputStream and an OutputStream. How to do ?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: Returning a response

    I need to write a string or binary data to the client
    Use one of the OutputStream's methods or wrap the OutputStream object in another class that has the methods that will do what you want.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. help with reading response from url
    By jaikiran1 in forum Java Servlet
    Replies: 9
    Last Post: 09-03-2013, 10:01 AM
  2. response.setContentType
    By bbq in forum Java Servlet
    Replies: 3
    Last Post: 01-17-2012, 05:37 PM
  3. Receive response from URL
    By DIego912 in forum New To Java
    Replies: 5
    Last Post: 12-22-2011, 06:59 PM
  4. Replies: 0
    Last Post: 04-07-2011, 03:09 PM
  5. Not getting a response for query
    By Kelly in forum JDBC
    Replies: 3
    Last Post: 04-20-2010, 03:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •