1 Replies - 2531 Views - Last Post: 04 February 2013 - 10:21 AM Rate Topic: -----

#1 albert018  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 23
  • Joined: 07-January 13

How to deal with uploaded photos?

Posted 04 February 2013 - 10:13 AM

Recently, I was trying to develop a function about uploading photos.

But I only got two methods.

The first one is to add a new column , the type is 「binary」,the each photo users upload just convert into binary , then save to database.

The second one is to create a directory for users uploading photo files.Then I'll save each photo path in the database.

So~~What I am asking is there is any better solution to deal with it ??

Is This A Good Question/Topic? 0
  • +

Replies To: How to deal with uploaded photos?

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9570
  • View blog
  • Posts: 36,240
  • Joined: 12-June 08

Re: How to deal with uploaded photos?

Posted 04 February 2013 - 10:21 AM

Assuming you don't want a bloated DB the second option is the better of the two.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1