Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Graphics in DataBase Files

Posted on 1997-06-27
1
Medium Priority
?
173 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 90 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: 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.

Question has a verified solution.

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

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

715 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