How to add images as details in a ASP MVC 3 Razor View using Entity Framework?

Look at this post: Display image from database in asp mvc.

Look at this post: Display image from database in asp mvc If you are trying to render from the database, create a method in your controller to get the image and use that as your image source like in the example above. The only difference is yours will be contained in a @foreach(var image in Model. Images) { } Then your model would contain the Id's of the images, and it would be the job of the action method to retrieve the image.

I think that this is not possible since the image is stored in the dbms. So there is no possibility to have a URL (one solution would be to store the image on the file system, than this approach would work) – Savvas Sopiadis Oct 4 '11 at 20:40 Take a look at this post here. – shuniar Oct 4 '11 at 21:17 this solves the problem ... partly!

This solution is based on the fact that the image is (somehow) already stored in the dbms. The requirement I have is: the user can add & delete images and finally do the actual saving of the page object (which includes the pictures). This means that she could decide not to save the page object, which means that the pictures shouldn't exist in the dbms, but due to the fact of the solution they will already have been stored.

– Savvas Sopiadis Oct 4 '11 at 21:35 Then instead of loading from the database keep a collection of File objects instead of Image objects and do the same thing. – shuniar Oct 4 '11 at 23:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions