Click here to Skip to main content
15,903,854 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

iwant to save images in database..
i have created the table
column datatype values
ImageID int Not null
ImageName varchar(50) Null
Image varchar(MAX) Null

Now i am inserting the data into the table....
ImageID ImageName Image
1 rose what should i give in this part

2.how should i display the image into my aspx page....
i am using detailsview to dispaly the data of the employee...

Here my task is to dispaly the employee data with image...

I hope u have understood my question???
Posted
Comments
Sergey Alexandrovich Kryukov 11-Sep-12 15:22pm    
Not really, because the only question here is "I hope u have understood my question???" :-)
--SA

Following links might help you:
how to insert images into database[^]
Store and Retrieve Image from SQL Database using ASP.Net[^]

And Please learn how to use Google.

Good luck.
 
Share this answer
 
hi ,
you have a take a data type as blob but not varchar(MAX)
see here have some example.
http://www.codeproject.com/Articles/33310/C-Save-and-Load-Image-from-Database

http://stackoverflow.com/questions/3548401/how-to-save-image-in-database-using-c-sharp[^]
 
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