Experts,
I am attempting to get the contents of a OLE Object out of a Access database and into a file. I am using the following code:
Dim imageData() As Byte
...
Open blobFilename For Binary Access Write As blobFileNum
ReDim imageData(myRS.Fields(i).ActualSize) As Byte
If myRS.Fields(i).ActualSize > 0 Then imageData() = myRS.Fields(i).GetChunk(myRS.Fields(i).ActualSize)
Put #blobFileNum, , imageData()
Close #blobFileNum
I get a file, but I can't open the file. Any ideas would sure be appreciated.
I am attempting to get the contents of a OLE Object out of a Access database and into a file. I am using the following code:
Dim imageData() As Byte
...
Open blobFilename For Binary Access Write As blobFileNum
ReDim imageData(myRS.Fields(i).ActualSize) As Byte
If myRS.Fields(i).ActualSize > 0 Then imageData() = myRS.Fields(i).GetChunk(myRS.Fields(i).ActualSize)
Put #blobFileNum, , imageData()
Close #blobFileNum
I get a file, but I can't open the file. Any ideas would sure be appreciated.