Jump to content

Storing uploaded content in database


priyadharshini

Recommended Posts

Hi all,

Am developing a consultancy project and i want the uploaded resumes to be placed in the database directly.

I used blob in database but it is stored as junk values.

I want it to be stored as like uploaded for the content to be searched.

 

Mysql version:5.0

 

Please provide me some solution as soon as possible. :(

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/222804-storing-uploaded-content-in-database/
Share on other sites

  Quote

Don't store files in your DB!! :)

 

Instead, store the path to the file on the file root.  Makes for a happier DB...

 

Then there's no way to search the resumes.

 

OP have a look at http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html.  I believe you have to store as a 'text' type to use this.  If you really want to have good search capabilities it may be worth looking into something like lucene.

Hi,

 

There is a way to search the resumes (files) but you will have to write extra code to parse the content of each file (resume) and save that excerpt in another field along with maybe afew other field such as ones to classify or mark the resume's content to a specific category.

 

It is true that it's NOT a good idea to try and store files in the actual database; set the path to location is best and use FILE functions to read content from the resume and save in other "text" fields - those "VCHAR" field types can then be queried from the db.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.