What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » mysql images

mysql images
Author: Message:
bach_m
Veteran Member
*****

Avatar
4837 :P

Posts: 2863
Reputation: 7
37 / Male / –
Joined: Feb 2003
O.P. mysql images
I'm trying to write a PHP web-aplication that, among other things, takes an image(or wav, or video) from a harddrive and store it in a database. it would be much easier to not need to deal with the file type.....

I don't know how to do this, really.
all i can guess is i need to take an image from an <input type=file>, and use chunk_split(base64_encode($file)) on it, and store that in the database.

does anyone know any good places learn about using the <input type=file>, and if there are any good tutorials to help do what i need.

i found this, and really need to know about <input type=file> so i can edit it to do that. but if you have suggestions on a better system to deal with the images, i'd be glad to here about it.

just to tell you, security is not that much of a concern, as the site is designed to run on a company intranet, with people who have better things to do rather than screw with the script or database. they don't want to be there, really.
07-16-2004 01:36 AM
Profile E-Mail PM Web Find Quote Report
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
RE: mysql images
You'll have to create a column in BLOB format and upload the content of the file (file_read_contents() will be enough), you don't need to base64 it.
http://dev.mysql.com/doc/mysql/en/BLOB.html

And well there is http://es.php.net/features.file-upload.

Please :google: or search next time :@
07-16-2004 02:22 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On