VB6 Variant vs Byte Array
In Visual Basic 6.0, a Variant containing a byte array is different than a byte array. For example, examine this code: ‘ Assume mime is a ChilkatMime object… Set mimePart = mime.GetPart(1) thefile = FreeFile() ‘Get the attachment filename FileName = mimePart.FileName ‘Get the attachment Dim mBody As Variant mBody = mimePart.GetBodyBinary If Len(mBody) > 0 Then Open FileName For […]