Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Retrieving data from biometric attendance

  1. #1
    Junior Member
    Join Date
    Apr 2018
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Retrieving data from biometric attendance

    Following the below code, i am able to connect to the device but no data is being retrieved, any advice?


    try {
    Socket socket = new Socket(host, port);
    BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));

    String line;
    while (true){
    line = in.readLine();
    if (line != null){
    System.out.println(line);
    }
    }
    } catch (UnknownHostException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    }

  2. #2
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    170
    My Mood
    Asleep
    Thanks
    5
    Thanked 12 Times in 12 Posts

    Default Re: Retrieving data from biometric attendance

    Which part of code is your retrieve code ?
    Whatever you are, be a good one

  3. #3
    Junior Member
    Join Date
    Apr 2018
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Retrieving data from biometric attendance

    Quote Originally Posted by John Joe View Post
    Which part of code is your retrieve code ?
    The read inline isnt it?

Similar Threads

  1. Storing/Retrieving Data with Shared Preferences
    By dVelas in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 22nd, 2013, 09:00 PM
  2. Is connection pooling meant for retrieving data only?
    By tangara in forum JDBC & Databases
    Replies: 0
    Last Post: July 15th, 2013, 04:13 AM
  3. Retrieving data from backend
    By chaitime in forum JDBC & Databases
    Replies: 5
    Last Post: April 29th, 2012, 02:28 PM
  4. Retrieving Meta-Data from a File
    By FretDancer69 in forum File I/O & Other I/O Streams
    Replies: 7
    Last Post: February 9th, 2010, 07:10 AM
  5. problem in retrieving data via RMS
    By solaleh in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: August 30th, 2009, 05:46 AM

Tags for this Thread