
06-02-2004, 09:05 AM
|
 |
Back in the Game
Forum Leader * Expert *
|
|
Join Date: Nov 2003
Location: Manila Philippines
Posts: 3,555
|
|
try this
Code:
Function ProcessImage(strImageName) As Byte()
Dim IntNum As Integer
Dim ByteImage() As Byte
If (strImageName <> "") Then
IntNum = FreeFile
Open strImageName For Binary As #IntNum
ReDim ByteImage(FileLen(strImageName))
Get #IntNum, , ByteImage
Close #1
End If
ProcessImage = ByteImage
End Function
to save the image to your table
Code:
rs.Fields("myImage").AppendChunk ProcessImage("c:\fjrtemp.jpg")
But saving the image to your table will rapidly increase the size of your Database so i won't recommend using this method save the path and name of the image file as much as you can.
|
|