PHP to write longblob to file

  • artcoder
  • Student
  • Student
  • User avatar
  • Joined: Feb 27, 2007
  • Posts: 89
  • Loc: United States
  • Status: Offline

Post July 3rd, 2009, 10:25 am

I have an image stored in a MySQL table as a "longblob". How can I write PHP code to write this data to an image file?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 3rd, 2009, 10:25 am

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 3rd, 2009, 11:07 am

What kind of image is it? I mean is it PNG, GIF... ?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post July 3rd, 2009, 11:46 am

Umm okay why do you wanna write this to file? Is it for viewing or downloading?

If it is for viewing check out the tutorial I wrote here http://www.rabiddog.co.za/tutorial.php? ... usingMySQL
Watch me grow

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 202 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.