Click here to Skip to main content
11,412,182 members (62,182 online)
Click here to Skip to main content

WSQ to BMP converter

, 7 Feb 2013 CPOL
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

Comments and Discussions

Questionwebservice to convert WSQ fingerprint format to BMP format PinmemberLeverify10-Apr-14 1:03 
QuestionRaw data to WSQ Pinprofessionaldrugdu19-Sep-13 6:37 
AnswerRe: Raw data to WSQ [modified] PinmemberJ.F. Sebastian19-Sep-13 10:23 
GeneralRe: Raw data to WSQ Pinprofessionaldrugdu20-Sep-13 11:23 
GeneralRe: Raw data to WSQ PinmemberJ.F. Sebastian23-Sep-13 7:48 
Questionwsq to raw PinmemberMiCRo_18-Jun-13 5:17 
AnswerRe: wsq to raw PinmemberJ.F. Sebastian19-Sep-13 10:16 
Questionbmp to wsq converter Pinmember1johan15-Apr-13 9:19 
AnswerRe: bmp to wsq converter [modified] PinmemberJ.F. Sebastian15-Apr-13 9:44 
Suggestion.NET 4 optimized solution - WriteableBitmap [modified] PinmemberJ.F. Sebastian5-Aug-12 23:53 
GeneralMy vote of 5 PinmemberMember 40837531-Aug-12 4:35 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150414.5 | Last Updated 7 Feb 2013
Article Copyright 2012 by J.F. Sebastian
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid