If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Statement for inserting image as blob into Sql query browser

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-09, 20:58
peggie1990 peggie1990 is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
Statement for inserting image as blob into Sql query browser

Hello, my name is Peggie.
Currently, I am using sql query browser as my database and I would like to insert a blob image into the database. Do we need to declare a path during the inserting of the statament? example: D:/Desktop/Beannie/10.JPG.


Coulde you guys tell what is the insert statement?
Thanks

Hope to receive ur reply soon
Reply With Quote
  #2 (permalink)  
Old 07-02-09, 07:49
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,517
Why not just leave the image on your file system and then just insert a link to the file ie

Code:
insert Products ( name, image_link ) 
values ( "Beanie", "D:/Desktop/Beannie/10.JPG" );
Mike
Reply With Quote
  #3 (permalink)  
Old 07-02-09, 10:25
peggie1990 peggie1990 is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
Re database

Thanks for ur help
Reply With Quote
  #4 (permalink)  
Old 07-02-09, 10:27
peggie1990 peggie1990 is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
Thanks for ur help
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On