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
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.