Abundant Code

  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • F#
  • JavaScript
  • ASP.NET
  • C
  • Java
  • SQL Server
  • Assembly Lang
Home ยป WebAPI

How to return Binary File from a Action Method in ASP.NET Web API ?

December 27, 2016 by AbundantCode Leave a Comment

There are times when you might want to serve binary files from your controller’s action method in ASP.NET MVC Web API. You can do this easily by setting the octet-stream content for the HttpResponseMessage as shown in the code snippet. How to return Binary File from a Action Method in ASP.NET Web API ?

Filed Under: WebAPI Tagged With: ASP.NET MVC, How to, Web API

How to return Json instead of XML in ASP.NET Web API ?

December 26, 2016 by AbundantCode Leave a Comment

When you make a call to the ASP.NET Web API action method and notice this in Google Chrome browser , you would see that by default the data would be displayed in the XML format as shown in the screenshot. How to return Json instead of XML in ASP.NET Web API ? You can easily […]

Filed Under: WebAPI Tagged With: ASP.NET, How to, Web API

How to Add Web API to existing ASP.NET MVC Project ?

November 26, 2016 by AbundantCode Leave a Comment

There are times when you might want to add Web API project to one of your existing ASP.NET MVC project instead of creating a new one. How to Add Web API to existing ASP.NET MVC Project ? You can easily do that by installing it from NuGet. Simply open the Package Console Manager and run […]

Filed Under: WebAPI Tagged With: ASP.NET, ASP.NET MVC, Web API

Building a ASP.NET Web API in Visual Studio 2015

May 24, 2016 by AbundantCode Leave a Comment

This blog post will explain on how to create a Simple ASP.NET Web API using Microsoft Visual Studio 2015 and return an expose a List (Eg: List<Students>) over HTTP. This includes creating action methods and using them for get all students and get a particular student by id. How to create a Web API in […]

Filed Under: WebAPI Tagged With: ASP.NET, guide, tutorials, visual studio 2015, WebAPI

RSS
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval

Categories

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML

Blog Stats

  • 8,730,851 hits

Archives

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • C Program to display half-pyramid using alphabets
  • How to open display settings from command line in Windows 10 ?
  • How to Extract number from a string using C# ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • How to clean up unused PowerPoint master slides in PowerPoint?
  • Json.NET & VB.NET - How to Serialize an Object ?
  • How to retrieve the URL of the current Page in ASP.NET MVC 4 Controller ?
  • How to get the Relative Server Path in ASP.NET Web API ?
  • How to compare two Byte Arrays in C#?

Categories

  • Android
  • Angular 2
  • ASP.NET
  • Assembly Language
  • C
  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • Excel
  • F#
  • HTML
  • Interview Questions
  • Java
  • JavaScript
  • jQuery
  • Microsoft Office
  • MySQL
  • NETWORK
  • News
  • PHP
  • popular
  • PowerShell
  • Python
  • Ruby
  • SharePoint
  • SQL Server
  • SQL Server
  • Unix
  • VB.NET
  • Visual Studio
  • WebAPI
  • Windows
  • Windows Azure
  • Windows Forms
  • XAML

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • C Program to display half-pyramid using alphabets
  • How to open display settings from command line in Windows 10 ?
  • How to Extract number from a string using C# ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • How to clean up unused PowerPoint master slides in PowerPoint?
  • Json.NET & VB.NET - How to Serialize an Object ?
  • How to retrieve the URL of the current Page in ASP.NET MVC 4 Controller ?
  • How to get the Relative Server Path in ASP.NET Web API ?
  • How to compare two Byte Arrays in C#?

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval
  • Python Program to Check Prime Number
  • Python Program to Find the Largest Value Among Three Numbers
  • Python Program to Check If a Given Year is Leap Year
  • Python Program to Check if a Number is Odd or Even
  • Python Program to Check if a Number is Positive, Negative or Zero

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML