Solved

Graphics in DataBase Files

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
creating threads in delphi 1 130
Dev express lookupcombo 3 34
Tvertscrollbox like a whatsapp layout 5 34
firemonkey Android Listview Sort items 7 47
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 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