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
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7128
  • Loc: Ozzuland
  • Status: Offline

Post July 3rd, 2009, 11:07 am

What kind of image is it? I mean is it PNG, GIF... ?
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • Rabid Dog
  • Cheese Monkey
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3188
  • 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
My Software Development Company
Music I have recorded (fixed now :))
Image

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 227 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
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.