Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2002, 06:47 AM
jamiguel77 jamiguel77 is offline
Senior Member
 
Join Date: Jan 2002
Posts: 1,171
Send a message via MSN to jamiguel77 Send a message via Yahoo to jamiguel77
Default 2 questions 1) about choose a file 2) about save a image in a db ....

hi all (i use D6 and mysql)
2 questions:

1) about choose a file
i have in my form a component image1, when the user make 2 click (dblclick) in the ocmponent image1, i want display a box for select a file(i can make a form for select the file), but exist other way more easy or any predefined box?

2) about save a image in a db ....

what is the best way: save the picture of image 1 (how not know, please give me any code) or save the path and the name in a field of type string?


thanks...
Reply With Quote
  #2  
Old 07-11-2002, 06:54 AM
PoseFant PoseFant is offline
Senior Member
 
Join Date: Jan 2001
Posts: 1,002
Default RE: 2 questions 1) about choose a file 2) about save a image in a db ....

1 - Use a TOpenDialog (It is on your Component Palette under Dialogs)

2 - Read about BlobFields in the help files.


---

Regards

/Filip

<cr> I've lost my autosignature ... *sobbing* ...</cr>
Reply With Quote
  #3  
Old 07-11-2002, 07:01 AM
jamiguel77 jamiguel77 is offline
Senior Member
 
Join Date: Jan 2002
Posts: 1,171
Send a message via MSN to jamiguel77 Send a message via Yahoo to jamiguel77
Default RE: 2 questions 1) about choose a file 2) about save a image in a db ....

1) ahhh ok not remeber OpenDialogBox...
2) ok, but for you what is the best way for save a image, blob or save the path and filename?

thanks
Reply With Quote
  #4  
Old 07-11-2002, 07:06 AM
PoseFant PoseFant is offline
Senior Member
 
Join Date: Jan 2001
Posts: 1,002
Default RE: 2 questions 1) about choose a file 2) about save a image in a db ....

It depends on what you want ...

Many DBs use a fileserver for saving attachments and resources, where the pointer to the attachment or resource is saved in the DB and the files are in their directory.


---

Regards

/Filip

<cr> I've lost my autosignature ... *sobbing* ...</cr>
Reply With Quote
  #5  
Old 07-11-2002, 07:27 AM
jamiguel77 jamiguel77 is offline
Senior Member
 
Join Date: Jan 2002
Posts: 1,171
Send a message via MSN to jamiguel77 Send a message via Yahoo to jamiguel77
Default RE: 2 questions 1) about choose a file 2) about save a image in a db ....

ok i decide by blob fields thanks (i need make other question in the forum)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:37 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.