943,169 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 449
  • PHP RSS
Sep 1st, 2010
0

How can I store Profile Picture in MySQL Database

Expand Post »
I want to upload and store images in MySQL database, but have no idea.

Please help me out?

Thank you
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ckant_kol2006 is offline Offline
4 posts
since Sep 2010
Sep 1st, 2010
0
Re: How can I store Profile Picture in MySQL Database
You don't, well technically you can, but there's a better way in my mind to store avatars. Simply upload them to a writeable directory (and be sure to check their name for validity: ensure to remove and null characters) and rename them to the user's name. You can also rewrite the writeable directory so that the URL to access a user's picture.

If you absolutely insist on storing an image in a MySQL database, check out this tutorial on PhpRiot.
Reputation Points: 47
Solved Threads: 47
Posting Whiz
FlashCreations is offline Offline
393 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Split Array and format with comma as separator
Next Thread in PHP Forum Timeline: Is it safe to use mysqli connection as global?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC