Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DBimage........??

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

610 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