?
Solved

DBimage........??

Posted on 2000-03-02
4
Medium Priority
?
906 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 396 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

Industry Leaders: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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