Jump to content

PHP and MYSQL word file upload


PRodgers4284

Recommended Posts

Just wondering if this can be done and can i store a word doc or a pdf in a mysql database table. Im doin a project for uni based on a job recruitment website and i want an option to allow users to add a cv to the database and store the doc in a field in the table, is this possible, i was wondering if anyone could point in the right direction on how to do this, i would really appreciate some help.

 

Phil

Link to comment
Share on other sites

it is possible to store the files in MySql database

i have a code to upload the image in the database as well as retrieve it from the database.

 

you need to cteated the table with the blob field.

 

Cheers

 

 

Thanks for your reply, is it difficult to do this, im looking to add a word file to the database?

 

Thanks

 

Phil

Link to comment
Share on other sites

I'll expand on my previous post:

 

It is possible to insert almost any binary document into a blob

type field but in most case i would suggest to store the

document outside the database and to store the *address* of the

document into the database.

 

Blobs make database less efficient due to the variation they

introduce in field length.

 

A blobed (?) binary document also takes more space than the

original one.

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.