Php upload images to Microsoft Sql and download to browser

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Guetto
Forum Newbie
Posts: 1
Joined: Mon Apr 23, 2007 11:04 am

Php upload images to Microsoft Sql and download to browser

Post by Guetto »

hello i´m new at this things of forums but i really need some help so my problem is this:

I want to put an image in my DB that is Microsoft sql, i have already put the image encoded in DB but it always lose information because its too big... then i tried to put the field where the image goes in DB as IMAGE variable but then i cant show the image... i realy dont know what to do :(

if anyone could healp me i realy need...

thx
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Store the images in the file system, their intended location. Store a reference to their name/location in the database.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Ya - store the images in the filesystem. Storing them in the database raises a number of code & speed issues that aren't necessary.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply