Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,624 members, 7,813,050 topics. Date: Tuesday, 30 April 2024 at 05:45 AM

Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? (2086 Views)

Payment Gateway On Registration Page With File Upload Functions On Wordpress / Simple Tips For PHP File Upload / Pls Developer Help Me To Solve This Excel File Upload To Databse (2) (3) (4)

(1) (Reply) (Go Down)

Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 6:15pm On Feb 28, 2017
pls what class should I use to send fingerprint image directly to database without using file upload?
I checked Google. suggestion there is that I should pass the image to InputStream but am having error on my IDE..pls how do I fix it? pls give me some codes..
thanks.
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by bigtt76(f): 7:10pm On Feb 28, 2017
Compression it into a folder and create a referential link to it. It is the link you store in the database so as to make it easier to recall than uploading and downloading each time.



duke2017:
pls what class should I use to send fingerprint image directly to database without using file upload?
I checked Google. suggestion there is that I should pass the image to InputStream but am having error on my IDE..pls how do I fix it? pls give me some codes..
thanks.
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 7:52pm On Feb 28, 2017
Boss, I don't understand..,,I have d image already...I have converted the image from long to string so I can change from string to binary stream...can fileinputstream take care of this? or in place of fileinputstrean, what should I use?..it on java
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by seunthomas: 8:53pm On Feb 28, 2017
duke2017:
pls what class should I use to send fingerprint image directly to database without using file upload?
I checked Google. suggestion there is that I should pass the image to InputStream but am having error on my IDE..pls how do I fix it? pls give me some codes..
thanks.

You need to give more information. Is this a web app or desktop application? How do you plan to use the fingerprint image? Is this a biometric application. This would help you determine the best way to store your finger print image. Ideally storing images as blob in a database is a BIG NO NO.....
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 9:11pm On Feb 28, 2017
ok Boss...thank u...am building a desktop application...it a biometric application.. finger print will b capture and shown on jlabel1, another 1 will b capture and shown on jlabel2 . if minutiae on jlabel = minutiae on jlabel2, then register the minutiae as fingerprint into database..
the fingerprint is declared as long,so I converted it to string. from string, we both know u have to convert it to binary stream... how do I do this?..
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 9:13pm On Feb 28, 2017
if using blob in database is a big no, how do I go abt it pls?
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by seunthomas: 9:19pm On Feb 28, 2017
duke2017:
ok Boss...thank u...am building a desktop application...it a biometric application.. finger print will b capture and shown on jlabel1, another 1 will b capture and shown on jlabel2 . if minutiae on jlabel = minutiae on jlabel2, then register the minutiae as fingerprint into database..
the fingerprint is declared as long,so I converted it to string. from string, we both know u have to convert it to binary stream... how do I do this?..
If you are asking how to convert the String to byte stream then you can do this:


String fingerprintstr= "frggteeeeeeeeeeeee";

String binarystream= "";
char[] arraychar= fingerprintstr.toCharArray();

for (int i = 0; i < arraychar.length; i++) {
binarystream+= Integer.toBinaryString(arraychar[i]) + " ";
}
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 9:39pm On Feb 28, 2017
Boss pls can u drop this on whatapp for me? my phone is small as such I can't read to d end...tanks...my no is 08022269656 or enefiokduke4info@gmail.com ...thanks
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 9:42pm On Feb 28, 2017
this what am seeing.. String fingerprintstr= "frggteeeeeee String binarystream= ""; char[] arraychar= fingerprintstr for (int i = 0; i < arraychar.le binarystream+= Integer.toBin it not complete ,as such I can understand it
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by lekropasky(m): 10:54pm On Feb 28, 2017
Can you upload your code? I might be able to help you if I see what you've done. Or, if you can make your explanation clearer.
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 3:12am On Mar 01, 2017
i couldn't upload it here...pls check ur WhatsApp.... thank u very much
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by seunoni34(m): 3:52am On Mar 01, 2017
Storing blob data in a database is a pretty bad idea. It just doesn't sound cool in terms of performance. Just store the image in a file system then store the link in a the database as text.
The fact that this is desktop app though.
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by lekropasky(m): 6:59am On Mar 01, 2017
duke2017:
i couldn't upload it here...pls check ur WhatsApp.... thank u very much

Do you have my contact?
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by Nobody: 2:19pm On Mar 01, 2017
create a database to store the fingerprints
in msql
store.sql
user id
print1
create a table containing user ID and print
`userID` varchar( 32 ) NOT NULL ,
`print1` varbinary( 4000 ) DEFAULT NULL
look at the jar library and copy the the method
binary stream .


private byte [] loadDataFile() {
// TODO Auto-generated method stub
JFileChooser fc = new JFileChooser( ne
fc . showOpenDialog( this );
if (fc . getSelectedFile() != null ) {
InputStream input = null ;
try {
input = new BufferedInputStream( new F
fc . getSelectedFile()));
byte [] data = new byte[input . availa
input . read(data, 0 , input . availab
input . close();
return data;
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e . printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
JOptionPane . showMessageDialog( null
}
}
return null ;
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by Nobody: 2:23pm On Mar 01, 2017
in this case u have to make the prints to be stored in binary.
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 4:55pm On Mar 01, 2017
@proxy20, it means I will still use file upload which I don't want... all I need is capture d image ,n at d same time, send it to database...thank u for ur response but am not seeing everything text to end..paste it on my WhatsApp page...08022269656 or enefiokduke4info@gmail.com pls
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by 2mNaira: 10:19pm On Mar 02, 2017
I dont consider myself a java programmer cos since i learned it years back, I have not used it for to solve any important problem.

However conversion of data to bytes have the same algorithm in probably all languages.

In your case do this:

1.Write your data to a character array.
2.Write you data from the character array into a byte holder( or data structure) one char per time.
Thats it. Once your data is in a byte form it is equivalent to a database data type called blob which you can save to any database
using appropriate sql command.

If you, however, need to send you data over network, then use the appropriate stream/byte reader in your language.
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by 2mNaira: 7:33am On Mar 03, 2017
@duke2017, the answer you seek is already given by proxy20. Just replace the file upload section of the code with a conversion to byte/stream set of codes.
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 11:34pm On Mar 04, 2017
Master @proxy20, give solution to this,,, Copy the following files to c:\windows\SysWow64..
jnifplib\win32\jnisgfplib.dll jnifplib\win32\jnisgwsqlib..
how do I go abt this? what does it mean? where is c:\windows\syswow64 located in my system? put me through pls
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by Nobody: 12:49pm On Mar 05, 2017
duke2017:
Master @proxy20, give solution to this,,, Copy the following files to c:\windows\SysWow64..
jnifplib\win32\jnisgfplib.dll jnifplib\win32\jnisgwsqlib..
how do I go abt this? what does it mean? where is c:\windows\syswow64 located in my system? put me through pls

Don't let my boss hear u call me master......


just go to file explorer and search c:\windows\SysWow64

alternately click CTRL +F

copy the dil file by CTRL +C
and paste it in the required folder CTRL +V
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 4:42pm On Mar 05, 2017
Master @proxy20, I don't really understand ur explanation... Am using Windows 8.1...64 bit operating system... I have opened file explorer...I don't seems to figure out somethings..
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by Nobody: 7:27pm On Mar 05, 2017
duke2017:
Master @proxy20, I don't really understand ur explanation... Am using Windows 8.1...64 bit operating system... I have opened file explorer...I don't seems to figure out somethings..

This isn't programming just mere searching
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 12:33pm On Mar 06, 2017
Thanks Master @proxy20...u r the best in this field...it worked n over worked for me...don't know how to thank u..
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 2:55pm On Mar 06, 2017
Boss good morning@proxy20...the application was running well with sample program, but when I tried running with my program, it shows the no file in the java library path agsin.. At this point, am confuse...what should I do
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by Nobody: 7:47pm On Mar 06, 2017
duke2017:
Boss good morning@proxy20...the application was running well with sample program, but when I tried running with my program, it shows the no file in the java library path agsin.. At this point, am confuse...what should I do

OK sir , you just have to use the samples/examples and the .jar library for implementation your code is not recognized in the library .
Re: Pls How Do I Send Fingerprint Image Directly To Database Without File Upload? by duke2017: 9:32am On Mar 07, 2017
Morning Master@proxy20..
My App captures image but crash after capturing the image with the error: Failed to write core dump. Minidumps are not enabled by default on client versions of windows..pls how do i solve this?;;am using Windows 8.1, 64bit os..

(1) (Reply)

Solving Polynomial Eqn. In Vb Using Newton Rapson Method / Networking Involves Programming But Not Otherwise? / Msc In Software Engineering

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 31
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.