Serialize COM variant to BLOB or IStream
See the question and my original answer on StackOverflowYou can do this using the the VARIANT_UserMarshal function.
General information on this function (and similar ones for other OLE Automation types) is available here: Marshaling OLE Data Types and here: The type_UserMarshal Function