Solved

DBimage........??

Posted on 2000-03-02
4
904 Views
Last Modified: 2008-02-01
Hi.....
    I have a big problem......How do I add pictures to database by DBimage?
I can't add pictures to database in the database Desktop..and I can't find any way to add in delphi......???
help me pls......
                            by windyui
0
Comment
Question by:windyui
[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
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
fulvio_brasil earned 99 total points
ID: 2579006
windyui,

try this:
procedure TForm1.Button1Click(Sender: TObject);
begin
  if (OpenPictureDialog1.Execute) then begin
    if (Table1.State <> dsInsert) then Table1.Edit;
    DBImage1.Picture.LoadFromFile(OpenPictureDialog1.FileName);
    Table1.Post;
  end;
end;

In my Table1 I have a Graphic Field (BLOB) used in DBImage1.

It works well.

Hope that you enjoy,

Fulvio.
0
 

Author Comment

by:windyui
ID: 2582718
hi Fulvio.......
   Thx Very Much......^_^
  and I have one more question.....
I use LMDDBimage and it doesn't have the property "Picture".How can I add picture to it?
  when I add picture to DBimage,the picture also add to LMDDBimage automatically.....WHY?
(I put one DBImage and One LMDDBimage in the same Form)
                           BY wind
0
 
LVL 1

Expert Comment

by:fulvio_brasil
ID: 2583145
hi wind,

you're welcome!

well, about this other component (LMDDBimage) i don't know it...

Why you use it? What's the big difference?

And, about that mirror property (you put in DBimage and the picture appears in LMDDBimage), is any property in LMDDB that points to DBimage ? Because I think this is the only way for One kwnow about other.

cheers,

Fulvio.
PS: Excuse my english... :o)
0
 

Author Comment

by:windyui
ID: 2595223
hi Fulvio...
     OK,I c...
    LMDtools is very very Wonderful!..
here is it:www.lmdtools.com...
     Thanks very much...
and Excuse my POOR english ,too.^_^
                   see u
 BY wind
0

Featured Post

Independent Software Vendors: 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

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…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
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