Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Reading/writing TBitmaps to an MS Access table

Posted on 2002-04-09
4
Medium Priority
?
139 Views
Last Modified: 2010-04-04
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
Comment
Question by:sageryd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 800 total points
ID: 6927645
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
 
LVL 1

Author Comment

by:sageryd
ID: 6927656
Just discovered that on my own :)  Thanks anyway Meikl!!
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6927668
well, glad you got it works,
thanks for the points :-)
0
 
LVL 1

Author Comment

by:sageryd
ID: 6927676
;)

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question