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 ??
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 ??