Solved

Graphics in DataBase Files

Posted on 1997-06-27
1
171 Views
Last Modified: 2010-04-04
I have a database with over 900 items in it and would like to add pictures to it to describe each item in the database..  I would like to use JPG format do to size.. The JPG fiels are only 9K in size and the BMPre 50K..  I looke at the sample file in D3 FishFase..  This is somthing like waht I'm looking at.  The photos where taked with a digital camera..
0
Comment
Question by:jim zerbe
[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
1 Comment
 
LVL 1

Accepted Solution

by:
slp earned 30 total points
ID: 1337924
You can use a Blob Field to store ANY kind of file in a database, use something like:

MyTable.FieldByName('ITEMPIC').LoadFromFile('SOMEPIC.JPG') ;

to fill the field; you can similarly retrieve the contents back to a file with the SaveToFile() method.  DISPLAYING a .JPG is another question: Delphi 3 comes with a .JPG display component, but for D1 or D2 you'll either have to roll your own or buy a component or library (I use ImageLib and am pretty happy with it).


0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

751 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