Hello frnds.
i am a newbie to .Net technology.
i want to study that.
But while doing c#.net i have some problems that need ur techies advice
I can save images to database as binary.
But the control image in .Net IDE requires a imageurl.
how can i take image url from database.
or how can i display an image which is stored in database?
pls help me.
thanks in advance
Advertisements. Register and be a member of the community to get rid of them.
Dont store images in the database.Store them in one folder.Make a field in database for ex:- "webimages" then in database coding set the default path to C:/imagefoldername/webimages
^^ thank u frnd for reply.
but is this possible to link image stored in database to image control?
yes its possible to link. you can also store image data to database. i did it with VB.net (visual studio 2005). dont know the codes for C. go through MSDN. you will get the syntax.
if you use visual studio 2005 then you don't need to write any code. create sql table. then drag n drop the table to a form. visual studio will automatically create all the necessary controls including image control for image. its very easy.