Re: OLEs and BLOBs
- From: "Alex White MCDBA MCSE" <alex@xxxxxxxxxxxxxx>
- Date: Tue, 17 May 2005 05:24:34 +0100
Well if you are going to an ADP you are going to use SQL right?
if so the image field type is what you are looking for.
Here is some code to get file into SQL, I guess it is quite simple getting
the data out of Oracle, worst case write the file to the OS and then back
in, I am guessing you are storing files?
Dim adoConn As New ADODB.Connection
Dim adoDocument As New ADODB.Recordset
adoConn.Open "File Name=c:\to.udl"
Dim mStream As ADODB.Stream
Dim sql As String
sql = "Select Doc_Embed from TblCandidate_Contact_History Where
Candidate_Contact_History_ID=" & ' your primary key
Set adoDocument = New ADODB.Recordset
adoDocument.Open sql, adoConn, adOpenKeyset, adLockOptimistic
Set mStream = New ADODB.Stream
With mStream
.Type = adTypeBinary
.Open
.LoadFromFile myDoc
End With
With adoDocument
.MoveFirst
.Fields("Doc_Embed").Value = mStream.Read
.Update
.Close
End With
mStream.Close
adoConn.Close
--
Regards
Alex White MCDBA MCSE
http://www.intralan.co.uk
"Scott" <Scott@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D65721A5-DA9C-4B40-9EF3-81731AC215F5@xxxxxxxxxxxxxxxx
>I am currently transferring a database from Oracle to an Access Data
>Project.
> There is a field which contains OLEs and BLOBs stored within the database.
>
> Any ideas on how I could extract these files programatically ?
>
> Thanks.
.
- Follow-Ups:
- Re: OLEs and BLOBs
- From: Scott
- Re: OLEs and BLOBs
- References:
- OLEs and BLOBs
- From: Scott
- OLEs and BLOBs
- Prev by Date: Re: Access/2003 set references from code?
- Next by Date: Switch User
- Previous by thread: OLEs and BLOBs
- Next by thread: Re: OLEs and BLOBs
- Index(es):
Relevant Pages
|