D
Deepak
HI,
I have to read the OLE Object from Access Database and
store them as image in the Hard Disk. I am able to save
them as JPEG's or BMP's, using the method below.
But my problem is i am not able to open the file once
saved. What am i missing in this code.It is very urgent.
Any help on this regard will be appreciated
lngBytesLeft = rsData.Fields(j).ActualSize
intFreeFile = FreeFile
Open strFullPath For Binary As #intFreeFile
Do Until lngBytesLeft <= 0
lngReadBytes = lngBytesLeft
If lngReadBytes > lngChunkSize Then
lngReadBytes = lngChunkSize
End If
byBuffer = rsData.Fields(j).GetChunk(lngReadBytes)
Put #intFreeFile, , byBuffer
lngBytesLeft = lngBytesLeft - lngReadBytes
Loop
Close #intFreeFile
I have to read the OLE Object from Access Database and
store them as image in the Hard Disk. I am able to save
them as JPEG's or BMP's, using the method below.
But my problem is i am not able to open the file once
saved. What am i missing in this code.It is very urgent.
Any help on this regard will be appreciated
lngBytesLeft = rsData.Fields(j).ActualSize
intFreeFile = FreeFile
Open strFullPath For Binary As #intFreeFile
Do Until lngBytesLeft <= 0
lngReadBytes = lngBytesLeft
If lngReadBytes > lngChunkSize Then
lngReadBytes = lngChunkSize
End If
byBuffer = rsData.Fields(j).GetChunk(lngReadBytes)
Put #intFreeFile, , byBuffer
lngBytesLeft = lngBytesLeft - lngReadBytes
Loop
Close #intFreeFile