Quantcast
Channel: Convert Topaz Sigweb sigstring to Base64 - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Saifur Rahman for Convert Topaz Sigweb sigstring to Base64

$
0
0

The SigWeb SDK provides a method to get the signature string in a image format. Using that image, its possible to generate the target Base64 string. Here's a vb.net based implementation.

 Dim sigImage As System.Drawing.Image Dim sigObj As Topaz.SigPlusNET sigObj = New Topaz.SigPlusNET sigObj.SetSigCompressionMode(1) sigObj.SetSigString(sigWebSignatureString) sigObj.SetImageFileFormat(2) sigObj.SetImageXSize(100) sigObj.SetImageYSize(80) sigObj.SetImagePenWidth(1) sigObj.SetJustifyMode(5) sigImage = sigObj.GetSigImage() Using ms As New MemoryStream() System.Drawing.Image.Save(ms, Format)      Dim imageBytes As Byte() = ms.ToArray()      Dim base64String As String = Convert.ToBase64String(imageBytes) End Using

Viewing all articles
Browse latest Browse all 4

Trending Articles