Updating a BLOB with a URL

This is a discussion on Updating a BLOB with a URL within the MySQL Database forums, part of the Database Forums category; I'm using PHP to run a loop of MySQL queries that should update the blobs with small image files, ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2006
Lucky_Syringe
 
Posts: n/a
Default Updating a BLOB with a URL

I'm using PHP to run a loop of MySQL queries that should update the
blobs with small image files, but it doesn't work. I'm thinking its
because I am running the queries remotely, because the MySQL
documentation seems to only upload the files locally, is there any
difference?

$fileURL is in the form
'http://www.host.com/imagex.gif'
where x is 1 - 395.

Query:
UPDATE $dbTable
SET content=LOAD_FILE('$fileURL')
WHERE id=$x

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0