Downgrade FromBase64String from vb.net to vb6
Posted on 2010-09-02
I have a .Net example application that uses FromBase64String which I need to convert one function from and place in my legacy VB6 application, but I have been unable to find equivenent code. The function accepts strdata as a string, decodes it from base64 and saves it as a bmp file. Can anyone tell me how to accomplish this in VB6????
This is the whole code of the function.
Private Sub SaveImageData(ByVal sigdata As String)
Dim b() As Byte = Convert.FromBase64String(strdata)
Dim fs As IO.FileStream = IO.File.Create("C:\temp.bmp")
fs.Write(b, 0, b.Length)