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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:33:27+00:00 2026-05-16T16:33:27+00:00

I have an approach in mind for an image viewer in a web app,

  • 0

I have an approach in mind for an image viewer in a web app, and want to get a sanity check and any thoughts you stackoverflowers might have.

Here’s the whirlwind nutshell summary: I’m working on an ASP.NET MVC application that will run in my company’s retail stores. Even though it is a web application, we own the store machines and have control over them. We have a “windows agent” running on the store machine which we can talk to from the browser via javascript (it is a WCF service, and our web app has permission to talk to it from the browser).

One of the web pages needs to be an “image viewer” page with some common things like Rotate & Zoom.

Now, there are some WebForms controls that offer Rotate and Zoom. However, they take up server resources and generate a good bit of traffic between the server and the browser. For example, the Rotate function would cause an ajax call to the server, which would then generate a new image written to a .NET Canvas object, which would then be written to a file on the server, which would then be returned from the ajax call and refreshed inside the browser.

Normally, that’s a pretty good way of doing things. But in our case, we have code running on the store machine that we can communicate with. This leads me to consider the following approach:

  1. When the user asks to view an image, we tell our “windows agent” to download it from our image server to the store machine.
  2. We then redirect our browser to our image viewer page, which will pull the image from the local file we just wrote to the store machine.
  3. When the user clicks “Rotate”, we cause JavaScript code in the browser to call our “windows agent” software, asking it to perform the “Rotate” function.
  4. The “windows agent” does the rotation using the same kind of imaging control that would formerly have been used on the server, but it does so now on the store machine.
  5. Javascript in the browser then refreshes the image on the page to show the newly rotated image.

Zoom and similar features would be implemented the same way.

This seems to be much more efficient, scalable, and responsive for the end-users. However, I’ve never heard of anything like it being done, mostly because it’s rare to have this combination of a web app plus a “windows agent” on the client machine.

What do you think? Feasible? Reasonable? Any pitfalls I overlooked or improvements / suggestions you can see? Has anyone done anything like this who would like to offer the wisdom of experience?

Thanks!

  • 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-16T16:33:28+00:00Added an answer on May 16, 2026 at 4:33 pm

    Upon further thought, we did something MUCH simpler (always good when you can find that). I didn’t realize at the time of this writing how simple it is to rotate and zoom images using JavaScript. In fact, we have to support IE (and only IE, since the product is used in our stores and it handles integrated authentication slightly better) … so the rotate was done with IE filters and the zoom was done with CSS. Lets us be stingy with round-trips and deliver the features efficiently.

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

Sidebar

Related Questions

Does anyone have any suggestions for a good approach to finding all the CPAN
I have a 3-tier .NET service app, which follows the standard approach: Frontend ->
I have to make an iPhone app for a company which has a web
I have a new web app that is packaged as a WAR as part
I have a question about best practices regarding how one should approach storing complex
I have only recently started working with the MVC approach, so I suppose this
Does anyone have a process or approach to use for determining how to resove
I have now worked on two different teams that use the Agile/Scrum approach in
I just wonder what the best approach is to have multiple users work on
I am wondering how you would approach this problem I have two Taxrates that

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.