Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1

    Default java, byte, images, database


    first..kinsa nakagamit ug digital persona pro nga software? biometrics ni siya


    anyway, unsaon man pag store ug byte array sa database, mao man gud ni ang representation sa template sa fingerprint nga makuha gikan sa device. unique combination jud ni siya?

    ang gamiton diay kay Java nya MsSql express...sakto ba?

  2. #2
    Bumpy Xd........

  3. #3
    Try blob ang datatype sa imong db.

  4. #4
    Hello...bump!

    kanang byte array ni akong i store sa DB, unsa akong gamiton nga data type sa SQL? kanang inig fetch sad gikan sa SQL same format ghapon?

  5. #5
    Quote Originally Posted by poymode View Post
    Hello...bump!

    kanang byte array ni akong i store sa DB, unsa akong gamiton nga data type sa SQL? kanang inig fetch sad gikan sa SQL same format ghapon?
    Use BLOB na data type.

  6. #6
    ahh..thanks ha

    ask lang ko, have you tried this out?

  7. #7
    Quote Originally Posted by poymode View Post
    ahh..thanks ha

    ask lang ko, have you tried this out?
    Yup. Mao man na ang recommended kung mag-save ka ug binary sa database.

  8. #8
    Agreed. Use blob datatype in your mysql.

    Below is the code snippet ...

    -----------------------
    byte b[] = yourByteArrayHere;

    ByteArrayInputStream fis = new ByteArrayInputStream(b);
    con = SQLConnection.getConnection();

    PreparedStatement ps = con.prepareStatement(YOUR_INSERT_STATEMENT)
    ps.setBinaryStream(1, fis);
    ps.executeUpdate();

    -----------------------

  9. #9
    Ahh...ako gi gamit una kay Image nga data type sa MS SQL 2005. Wa man gud blob, mag ilis ra cguro to MySQL..tnx


    ang blob wala nay size needed?

  10. #10
    there's no need to specify its length but you can initialze it if you want to....

    imo, why not save your image as a file as an alternative if your database dont have blob datatype!?

  11.    Advertisement

Page 1 of 2 12 LastLast

Similar Threads

 
  1. Need help with my java to database
    By brianegalorio in forum Programming
    Replies: 7
    Last Post: 03-17-2012, 11:57 PM
  2. using java code for database program
    By istoryansucks in forum Programming
    Replies: 8
    Last Post: 07-12-2010, 04:04 PM
  3. java-database
    By sogate in forum Programming
    Replies: 42
    Last Post: 07-03-2009, 01:04 AM
  4. image bigger than its panel in java
    By manick in forum Programming
    Replies: 4
    Last Post: 09-11-2008, 08:55 PM
  5. JAVA plus Image Processing plus template matching
    By DonJenn in forum Programming
    Replies: 8
    Last Post: 10-13-2006, 10:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top