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 8694675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:50:28+00:00 2026-06-13T00:50:28+00:00

i have a vs solution with 3 projects MyCore: class library with DAL,BLL,helper functions

  • 0

i have a vs solution with 3 projects

MyCore: class library with DAL,BLL,helper functions etc…

MyWebsite: asp.net website which references MyCore

MyApplication: wpf app that also references MyCore

this setup allows me to reuse all the same functionality in the website and in the app.

the only problem is images. right now all icons i keeps separately in the website (and are accessed by their url) and also in the desktop app (accessed as resource)

is there any way i can somehow store the icons in MyCore and use them in both projects?

any ideas?

thank you all very much for your time and patience

  • 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-06-13T00:50:30+00:00Added an answer on June 13, 2026 at 12:50 am

    An easy and strait forward way is to put all your images in a seperated Class (or in your case in MyCore) as a Ressource (Turn access modifier to public!).

    At this point you can use an HTTPHandler as ImageHandler, which streams the images of your ressource file as “normal” images to your webpage, e.g.

    public class ImageHandler : IHttpHandler
    {
      public void ProcessRequest(HttpContext context)
      {
        context.Response.ContentType = "image/jpg";
        context.Response.Clear();
    
        Bitmap image = ClassLibrary1.Resource1._1346135638012;
        image.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
    
      }
    
      public bool IsReusable
      {
        get
        {
            return false;
        }
       }
     }
    

    You could use a get parameter to identify which images has to be streamed, e.g.

    <image src="./ImageHandler.ashx?ImageId=123" />
    

    And – of course – you could use the ressoures for your application as well.

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

Sidebar

Related Questions

I have solution with two projects. ASP.NET MVC3 Class library In class library I
I have a Solution with several projects in it, including two asp.net mvc projects
I have one solution with three projects. DomainModel (C# Library with ADO.NET Entity Framework)
I have a solution with 3 projects (GUI, BL and DAL). The DAL assembly
I have solution with >270 projects, it contains various folders and etc. Imagine each
I have a solution with projects for MVC, testing, data access, etc which builds
I have a solution with multiple projects (a website and various other projects for
I have a solution with two projects: .NET application WiX setup project. I know,
I have solution with 3 projects. One is Website and another one is Services.
I have a solution with multiple projects and a website. On each project I

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.