PHP to write longblob to file

  • artcoder
  • Student
  • Student
  • User avatar
  • Posts: 89
  • Loc: United States

Post 3+ Months Ago

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?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

What kind of image is it? I mean is it PNG, GIF... ?
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

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

Post Information

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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.