Solved

Graphics in DataBase Files

Posted on 1997-06-27
1
162 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
indy Tmemory stream non latin charcter issue 2 109
Create a path if not exists 7 76
Delphi inherited method 6 67
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 66
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now