MySQL Forums
Forum List  »  Newbie

Inserting a JPG into a BLOB syntax
Posted by: Glen McGregor
Date: April 17, 2009 01:31PM

I understand that it is preferable to store file names rather than binary data in MySQL. However, I'd like to try anyway.

Can someone give me the syntax for an INSERT statement to put a JPG file into a LONGBLOB?

All the examples I can find use PHP. I'd like to understand how to do it with a query.

Options: ReplyQuote


Subject
Written By
Posted
Inserting a JPG into a BLOB syntax
April 17, 2009 01:31PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.