ASP.NET WebForms + HTTP handlers: 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: 1445
Joined: Thu Jul 10, 2008 2:21 pm

ASP.NET WebForms + HTTP handlers: View images in web image viewer.

Post by Alex » Mon Feb 27, 2017 12:44 pm

In this topic we will show how to upload an image file to a server and view images in ASP.NET WebForms application. Image files can be located inside and outside of the web application directory.

For doing our task we need:
  • Open Visual Studio .NET 2015.
  • Create an ASP.NET WebForms application project.
  • Add the references to the Vintasoft assemblies to the project:
    • Vintasoft.Shared.dll
    • Vintasoft.Shared.Web.dll
    • Vintasoft.Imaging.dll
    • Vintasoft.Imaging.Web.Services.dll
    • Vintasoft.Imaging.Web.HttpHandlers.dll
    Add the Vintasoft JavaScript files to the project:
    • Scripts\Vintasoft\Vintasoft.Shared.js
    • Scripts\Vintasoft\Vintasoft.Imaging.Svg.js
    You can add the assemblies and JavaScript files manually or automatically. Add the "Vintasoft.Imaging.Web.HttpHandlers" Nuget package to the project and the assemblies and JavaScript files will be added automatically.
  • Create a general HTTP handler with name MyVintasoftFileHandler. Handler will be used for manipulating of files on a server.
  • Create a general HTTP handler with name MyVintasoftImageCollectionHandler. Handler will be used for managing of image collection.
  • Create a general HTTP handler with name MyVintasoftImageHandler. Handler will be used for rendering of images and thumbnails.
  • Create a default web page.
  • Add the file upload control to the default web page.
  • Add SVG web image viewer and SVG web thumbnail viewer to the default web page.

Source codes of ASP.NET WebForms application for VintaSoft Imaging .NET SDK v8.5 can be downloaded from here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest