dbTalk Databases Forums  

newbie on sql

mailing.database.mysql mailing.database.mysql


Discuss newbie on sql in the mailing.database.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sales
 
Posts: n/a

Default newbie on sql - 09-06-2004 , 09:34 AM






How do I store graphics in mysql tables.

Cheers



Reply With Quote
  #2  
Old   
Aggro
 
Posts: n/a

Default Re: newbie on sql - 09-06-2004 , 01:05 PM






Sales wrote:

Quote:
How do I store graphics in mysql tables.
Two ways
1.) Easiest and perhaps more often used: Don't do it. Save graphics in
some folder and then save only the name or a link to that graphic into
the database. For example if you have a webpage-system, create folder
"images" and move all images there and then just save the name of the
picture to database in normal text format.

2.) Save it in binary format, use column type BLOB for example.
http://dev.mysql.com/doc/mysql/en/BLOB.html


Reply With Quote
  #3  
Old   
Sales
 
Posts: n/a

Default Re: newbie on sql - 09-07-2004 , 03:30 AM



I am using delphi7. When I put a DBImage component looking at a blob column
and paste an image into the column I get the error 'My SQL Server has gon
away'.

This happen when I try to update the data grid by moving to the next record.


"Aggro" <spammerdream (AT) yahoo (DOT) com> wrote

Quote:
Sales wrote:

How do I store graphics in mysql tables.

Two ways
1.) Easiest and perhaps more often used: Don't do it. Save graphics in
some folder and then save only the name or a link to that graphic into
the database. For example if you have a webpage-system, create folder
"images" and move all images there and then just save the name of the
picture to database in normal text format.

2.) Save it in binary format, use column type BLOB for example.
http://dev.mysql.com/doc/mysql/en/BLOB.html



Reply With Quote
  #4  
Old   
Aggro
 
Posts: n/a

Default Re: newbie on sql - 09-07-2004 , 09:02 AM



Sales wrote:
Quote:
I am using delphi7. When I put a DBImage component looking at a blob column
and paste an image into the column I get the error 'My SQL Server has gon
away'.

This happen when I try to update the data grid by moving to the next record.
I have never used the binary-method and I know nothing about Delphi, so
I can't help you, sorry.


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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.