Sub isBase64(text As String) As Boolean
If Regex.IsMatch("^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$", text) And text.Length > 3 Then
Return True
Else
Return False
End If
End Sub
Sub convertStringToBase64(text As String) As String...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.