[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 141
  • Last Modified:

Reading/writing TBitmaps to an MS Access table

I need to store the contents of a TImage to my MS Access table. I need one procedure for loading data and one for saving data. The only type Access seems to have for binary data is "OLE Object". I don't have the slightest clue on how to do this.

Please help!


regards,
Johan Sageryd
0
sageryd
Asked:
sageryd
  • 2
  • 2
1 Solution
 
kretzschmarCommented:
yep,

access stores blobs with an ole-server information prefix.

if there is no need to access the content within the access-frontend, then you should be able to store your images simple with

tblobfield(dataset.fieldbyname('fieldname')).loadfromfile('filename');  //or loadfromstream

savetofile/savetostream for the other direction

if your images are from different graphicformat, you need also a typefield in your table

meikl ;-)
0
 
sagerydAuthor Commented:
Just discovered that on my own :)  Thanks anyway Meikl!!
0
 
kretzschmarCommented:
well, glad you got it works,
thanks for the points :-)
0
 
sagerydAuthor Commented:
;)

Thanks again


I'm making a program for teaching japanese. I recon I might be able to sell it to my school. :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now