Solved

Place an Image on MSSQL Server

Posted on 1997-06-02
1
251 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Mdi application Child forms get behind control 7 360
delphi parse string to params 3 177
Tvertscrollbox like a whatsapp layout 5 68
Broadcast a message using ICS 2 50
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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 an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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