Solved

Place an Image on MSSQL Server

Posted on 1997-06-02
1
252 Views
Last Modified: 2010-04-06
How do I place a bitmap Image on the MSSQL Database with the datatype image?
Could someone please show me an example?
0
Comment
Question by:denny050397
[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
 

Accepted Solution

by:
brittain earned 200 total points
ID: 1336758
This actually isn't as difficult as you may think using BDE and data aware controls.

Create the table / column with Image as the datatype.  Create a BDE alias, and hook up in the traditional TQuery/TTable, TDatasource manner.  

To get the bitmap you want INTO the database just use the LoadFromFile() method of the TDBImage class's Picture property.

When you post using the navigator or a TDataSet.Post() method, the BDE writes the graphic to the database.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

617 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