Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6810137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:10:12+00:00 2026-05-26T20:10:12+00:00

I am curious as to how I should organize image storage in my application.

  • 0

I am curious as to how I should organize image storage in my application. They will be stored on disk somewhere, with the path / url stored in the database, but my application has become complex and image organization is leaving me baffled. The technology I am using is ASP.NET MVC 3 + EF 4.1 Code First (which is proving to be difficult with complex relationships).

This is a family based application, so there is a Family table, Member table, and a FamilyMember table to link to two. There is also a FamilyEvent, and MemberEvent table to track events in the family or member’s life.

Use cases

A Member can upload multiple profile pictures (possibly to be put in a “profile” album?)

A Member can upload “family” photos, to be attached to the Family object, and put into some type of album for the family.

A Member can add a member event, and attach multiple images to the members event.

A Member can add a family event, and attach multiple images to the family’s event.

These are the base use cases.

My thoughts

Base “Picture” table with id, description, and maybe the user id of the uploader.

MemberProfilePicture table with id, pictureId, memberId, etc…

MemberEventPicture table with id, pictureId, [member id?], membereventid, etc…

FamilyEventPicture table with id, pictureId, [familyId ?], familyeventid, etc…

This would allow a family or member to essentially “link” a Picture later to another profile pic / member event / or family event.

My question

Is this correct, or am I over-complicating this? I don’t see any other way other than multiple tables to represent images for different things, which all refer to the base Picture table. Can anyone give any suggestions as to how I can improve this model? While I understand there may be many definitions to correct, I’m looking for solutions as far as how to organize the imaging aspect of my application, or improvements on what I have already.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:10:12+00:00Added an answer on May 26, 2026 at 8:10 pm

    What I would do is have three tables.

    The ‘picture’ table which stores a unique id for each picture and the location.
    The ‘profile’ table which has your dtails about the profile.
    A third ‘linking’ table composed of pictureId and profileId

    If I want to link picture A to profile X I just add in “A,X” to the linking table. Same thing for events or whatever. If there’s going to be a many-to-many relationship this is the cleanest way to go (I’m assuming that the same picture can be in multiple profiles).

    Hope I understood your problem correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is not really of importance but I am still curious whetever I should
I know that questions should have definitive answers, but I'm legitimately curious to get
I haven't tried yet but am curious if I should even bother. I have
I've curious how this should be properly done. I ran a page im working
This should be easy, just curious. I know httpd is the HTTP daemon, just
I'm curious what kind of content should be in a versioned file commit comment.
I was just curious, why should we use reflection in the first place? //
Possible Duplicate: Why should I use templating system in PHP? I was just curious
I'm curious how I should go about improving the performance of a Haskell routine
I was just curious where i should place the main function in a Java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.