G
Guest
I need a guide or a point in direction as to how to do this.
I'm upgrading a software written in VB6 to C# ASP.NET.
Problem is that VB6 puts files into Access DB using an OLE Container, and
takes it out as OLE Container, while C# uses the OLE Objects in Access as a
Blob field, and shoves in bytes, so C# can't read the file in the Ole Object
field, nor can it upload the data in the Ole Container format.
This upgrade should not interfer with the old software's operation, so the
old VB6 program will still need to read the OLE Container added in with the
new software.
Solution:
I need to somehow write a VB function, that takes byte array or stream as
parameter, makes an OLE Container, and returns the OLE Container as byte
array or stream back. (And another function to do the reverse of this). Then
C# will take this function to do the conversion and streams in the data into
the Ole Object field.
Someone please help!
I'm upgrading a software written in VB6 to C# ASP.NET.
Problem is that VB6 puts files into Access DB using an OLE Container, and
takes it out as OLE Container, while C# uses the OLE Objects in Access as a
Blob field, and shoves in bytes, so C# can't read the file in the Ole Object
field, nor can it upload the data in the Ole Container format.
This upgrade should not interfer with the old software's operation, so the
old VB6 program will still need to read the OLE Container added in with the
new software.
Solution:
I need to somehow write a VB function, that takes byte array or stream as
parameter, makes an OLE Container, and returns the OLE Container as byte
array or stream back. (And another function to do the reverse of this). Then
C# will take this function to do the conversion and streams in the data into
the Ole Object field.
Someone please help!