Hi,
I need to convert a part of a program in VB and i need your help.
Dim st As New StreamReader(Fich.FullName)
xm = st.ReadToEnd
Dim enc As New System.Text.UTF8Encoding
Dim Buffer() As Byte = enc.GetBytes(xm)
Dim Filename As String = Convert.ToBase64String(Buffer, 0, Buffer.Length)
Console.WriteLine(wsSEF.EntregaBoletinsAlojamento(UH, Estabelecimento, ChaveAcesso, Convert.ToBase64String(Buffer, 0, Buffer.Length)))
I convert like this:
declare st = New StreamReader(Fich::FullName)
set xm to st::ReadToEnd
declare enc = New System.Text.UTF8Encoding
declare Buffer as byte occurs any = enc::GetBytes(xm)
set Buffer to enc::GetBytes(xm)
invoke type Console::WriteLine(wsSEF::EntregaBoletinsAlojamento(UH,Estabelecimento, ChaveAcesso, Convert::ToBase64String(Buffer, 0, Buffer::Length)))
Please tell me if is correct. I have no errors of compilation until the last line.
At the last line i have an erro in this part: "Convert::ToBase64String(Buffer, 0, Buffer::Length)". The error is OPERAND CONVERT IS NOT DECLARED.
I'm waiting for your comments and for your help.
Best regards,
Alberto Ferraz