How to Decode and Encode MIME data

This function will decode the mime data contained in a string into a BYTE and then it can be saved onto your desktop using the FileStream. ————————————————————————- Dim byteData As Byte() byteData = FromBase64(strMimeData) Dim oFileStream As System.IO.FileStream oFileStream = New System.IO.FileStream(“c:\temp\” & Me.txtAttachFileName.Text, System.IO.FileMode.Create) oFileStream.Write(byteData, 0, byteData.Length) oFileStream.Close() This function will encode the data […]