ASP.NET MVC + ServiceStack: View images in web image viewer.

Code samples for VintaSoft Imaging .NET SDK. Here you can request a code sample.

Moderator: Alex

Post Reply
Alex
Site Admin
Posts: 1725
Joined: Thu Jul 10, 2008 2:21 pm

ASP.NET MVC + ServiceStack: View images in web image viewer.

Post by Alex » Fri May 05, 2017 3:59 pm

In this topic we will show how to view images, which are stored in files on server, in web image viewers in ASP.NET MVC 5 application. Web image viewers use REST services based on ServiceStack 5.

For doing our task we need:
  • Open Visual Studio .NET 2017.
  • Create an ASP.NET MVC 5 application project.
  • Add the references to the Vintasoft assemblies (version 9.0.x.x) and Vintasoft JavaScript files to the project:
    • Vintasoft.Shared.dll
    • Vintasoft.Shared.Web.dll
    • Vintasoft.Imaging.dll
    • Vintasoft.Imaging.Web.Services.dll
    • Scripts\Vintasoft\Vintasoft.Shared.js
    • Scripts\Vintasoft\Vintasoft.Imaging.Html5.js
    You can add the assemblies and JavaScript files manually or automatically. Add the "Vintasoft.Imaging.Web.Services" Nuget package to the project and the assemblies and JavaScript files will be added automatically.
  • Create a REST service, which is based on ServiceStack 5, for manipulating of files on a server.
  • Create a REST service, which is based on ServiceStack 5, for managing of image collection.
  • Create a REST service, which is based on ServiceStack 5, for rendering of images and thumbnails.
  • Create a default web view.
  • Add HTML5 web image viewer and HTML5 web thumbnail viewer to the web view.
  • Load images into web image viewers.

Source codes of ASP.NET MVC 5 application for VintaSoft Imaging .NET SDK v9.0 can be downloaded from here.

Post Reply