Click here to Skip to main content
15,898,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

My name is Bheki, an IT student at Durban University of technology in South Africa studying my 3rd year.we are currently working on a web based project and it requires uploading images.
I would some help of how to upload those images to a database.

Im using Visual Studio 2008
SQL Server 2005
C# Language.

I need to know where to begin to code that kind of code.
Posted
Comments
koool.kabeer 26-Jul-10 7:36am    
Hey You Could Do that using SqlBinary Type If You are Using Sql as Your DataBase.
koool.kabeer 26-Jul-10 7:36am    
if You want to know how to do that using SqlServer then update your post now

Please go through Google, search it, you'll find many helpful links to guide you. Google is the best tutor.
 
Share this answer
 
Hi,

Actually there are 2 possibilities to store a picture into a database.
First, you can store the image directly in the database, using the BLOB-"datatype".

Second, you put the image onto a FTP-server and save the imagelink into a column.

Regards
 
Share this answer
 
As one of the poster said, I suppose you have not realized the power of search engines. The link[^] will help you. :thumbsup:
 
Share this answer
 
BLOB is the Better way to store the images in a database(which wil store in Byte format).
For this first u have to change the picture int binary Values and Store it in database.For displaying again u have to convert it from byte to Image)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900