Solved

DBimage........??

Posted on 2000-03-02
4
898 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Activex loadlibrary and show parented form issue 6 285
ddeman not working in activex 3 93
Print Graphic and Text to Epson TM-T88v 12 169
oracle global variables 4 63
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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now