Click here to Skip to main content
14,736,900 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Helo ,

iam using 3.0 and mvc3 utilizing the entity modeler.How do i create an entry that is an image whith type blob in the database

For ex:I want upload button to save image to the database and display from the database

1 solution

Don't save image directly to Database its not good practice ,instead save in application itself,make a folder in application path.Folder path and file name should save in database.

ie: in application create "Image" name like folder ,and you brows from image and save on server drive its self.File path should save on database .
Prasanna Kumari 21-May-12 4:22am
what is server drive???
justinonday 29-May-12 3:11am
Server drive i mean ,the path you hosted the application or application folder path.
May be like :D:\Application\yourproject\image\

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