Solved

Graphics in DataBase Files

Posted on 1997-06-27
1
156 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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

13 Experts available now in Live!

Get 1:1 Help Now