Click here to Skip to main content
13,795,352 members
Click here to Skip to main content
Add your own
alternative version


15 bookmarked
Posted 27 Jul 2012
Licenced CPOL

WSQ to BMP converter

, 7 Feb 2013
Rate this:
Please Sign up or sign in to vote.
A WSQ to BMP converter.


This is a C# conversion of JNBIS, a decoder library for WSQ images. JNBIS is written in Java. The code basically has been converted from NBIS Version 1.1 which was written in the C programming language. The NBIS (NIST Biometric Image Software) distribution was developed by NIST (National Institute of Standards and Technology) for the FBI (Federal Bureau of Investigation) and DHS (Department of Homeland Security).

Using the code

Using this converter is straightforward:

FileStream fs = File.OpenRead(@"C:\sample_image.wsq");
byte[] fileData = new byte[fs.Length];
fs.Read(fileData, 0, fileData.Length);
WsqDecoder decoder = new WsqDecoder();
Bitmap bmp = decoder.Decode(fileData);

You can use the WSQ sample image file from the Cognaxon website. 


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

J.F. Sebastian
Software Developer (Senior)
Serbia Serbia
No Biography provided

You may also be interested in...

Comments and Discussions

Question5 Stars Pin
Twiggy Ramirezz29-Sep-15 8:17
memberTwiggy Ramirezz29-Sep-15 8:17 
Questionwebservice to convert WSQ fingerprint format to BMP format Pin
Leverify10-Apr-14 1:03
memberLeverify10-Apr-14 1:03 
QuestionRaw data to WSQ Pin
drugdu19-Sep-13 6:37
memberdrugdu19-Sep-13 6:37 
AnswerRe: Raw data to WSQ Pin
J.F. Sebastian19-Sep-13 10:23
memberJ.F. Sebastian19-Sep-13 10:23 
GeneralRe: Raw data to WSQ Pin
drugdu20-Sep-13 11:23
memberdrugdu20-Sep-13 11:23 
GeneralRe: Raw data to WSQ Pin
J.F. Sebastian23-Sep-13 7:48
memberJ.F. Sebastian23-Sep-13 7:48 
Questionwsq to raw Pin
MiCRo_18-Jun-13 5:17
memberMiCRo_18-Jun-13 5:17 
AnswerRe: wsq to raw Pin
J.F. Sebastian19-Sep-13 10:16
memberJ.F. Sebastian19-Sep-13 10:16 
Questionbmp to wsq converter Pin
1johan15-Apr-13 9:19
member1johan15-Apr-13 9:19 
AnswerRe: bmp to wsq converter Pin
J.F. Sebastian15-Apr-13 9:44
memberJ.F. Sebastian15-Apr-13 9:44 
Suggestion.NET 4 optimized solution - WriteableBitmap Pin
J.F. Sebastian5-Aug-12 23:53
memberJ.F. Sebastian5-Aug-12 23:53 
GeneralMy vote of 5 Pin
Member 40837531-Aug-12 4:35
memberMember 40837531-Aug-12 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web05 | 2.8.181207.3 | Last Updated 7 Feb 2013
Article Copyright 2012 by J.F. Sebastian
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid