Solved

DBimage........??

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

12 Experts available now in Live!

Get 1:1 Help Now