|
-
Apr 27th, 2001, 09:12 PM
#1
Thread Starter
Hyperactive Member
Saving TIFF scanned images to Access OLE Object field?
I have an Access 97 database with a field defined as "OLE Object".
That field contains some multi-page TIFF files from a scanner.
In the Access table view the populated fields show up as "Image Document" and a double-click brings them right up in an image viewer.
Note, I didn't set any of this up and know fairly little about Access.
My problem is I'm trying to write a VB6 app to store more TIFFs into there and I'm stuck.
I fire-up the scanner and it dutifully creates a TIFF file and even loads the Wang ImgEdit control on my form to view the results.
I then get the file into a dynamic byte array in 1chunk and load into the recordset like:
DataEnvironment1.rsRecordSet.Fields("TIFF_Field").AppendChunk ByteArray
This puts the file into Access, but in the table it shows up as "long binary data", not "Image Document", and a double-click just makes Access angry.
How can I save that in Access and keep it looking like an OLE Object? Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|