How to save and retrieve fingerprint template to and from MySql using vb.net?
<p>I'm very new to this fingerprint thing on vb.net and mysql. I just started trying to use the digitalpersona u.are.u 4500 and I don't know how to save template to Mysql database. I also want to retrieve the data from Mysql. Here is the code. Thank you! `</p>

<pre><code>Private Enroller As DPFP.Processing.Enrollment

Protected Overrides Sub Init()
    MyBase.Init()
    MyBase.Text = "Fingerprint Enrollment"
    Enroller = New DPFP.Processing.Enrollment()     ' Create an enrollment.
    UpdateStatus()
End Sub

Protected Overrides Sub Process(ByVal Sample As DPFP.Sample)
    MyBase.Process(Sample)

    ' Process the sample and create a feature set for the enrollment purpose.
    Dim features As DPFP.FeatureSet = ExtractFeatures(Sample, DPFP.Processing.DataPurpose.Enrollment)

    ' Check quality of the sample and add to enroller if it's good
    If (Not features Is Nothing) Then
        Try
            MakeReport("The fingerprint feature set was created.")
            Enroller.AddFeatures(features)        ' Add feature set to template.
        Finally
            UpdateStatus()

            ' Check if template has been created.
            Select Case Enroller.TemplateStatus
                Case DPFP.Processing.Enrollment.Status.Ready    ' Report success and stop capturing
                    RaiseEvent OnTemplate(Enroller.Template)
                    SetPrompt("Click Close, and then click Fingerprint Verification.")
                    StopCapture()

                Case DPFP.Processing.Enrollment.Status.Failed   ' Report failure and restart capturing
                    Enroller.Clear()
                    StopCapture()
                    RaiseEvent OnTemplate(Nothing)
                    StartCapture()

            End Select
        End Try
    End If
End Sub

Protected Sub UpdateStatus()
    ' Show number of samples needed.
    SetStatus(String.Format("Fingerprint samples needed: {0}", Enroller.FeaturesNeeded))
End Sub

Private Sub EnrollmentForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

End Sub
Private Sub InitializeComponent()
    Me.SuspendLayout()
    '
    'bioenrollment
    '
    Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
    Me.ClientSize = New System.Drawing.Size(1266, 630)
    Me.Name = "bioenrollment"
    Me.ResumeLayout(False)
    Me.PerformLayout()

End Sub`
</code></pre>