Sample integration for using .NET
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


DotNET integration

This is the integration library for .NET

This is not an official integration library from It is developed and maintained by the developer community with inputs from the team. The list of contributors can be found below. Cheers to all of them!


This library will help you to upload your images to as easy as possible. Currectly you can upload images via URL (URi), Path to existing file in your hard disk (string) and byte arrays (byte[]) which are default format of uploaded files in ASP.NET . Also you can make feature request or contribute for things you need.

Getting Started

These instructions will help you to interact with services in .NET using the brand new integration library.


There are a couple of ways to get started with this integration library.

Way one: Open up your project, navigate to Nuget package manager console and add Imagekit package.

Install-Package Imagekit

Also you can search for Imagekit in Nuget GUI.

Way two:

1-Clone this repo or download the zip file.

2-Add it to your solution

3-Reference your host project to Imagekit.


Now that everything's installed and set up, you can start using on your .NET project! First, add this reference where you want to use services:

using Imagekit;

Then, initialize the service using this code, when your app starts(example: ASP: Global.asax, WPF: app.xaml.cs):

ConnectionHelper.Initialize("API-public", "API-Private", "ID");

Notice: API-public is your API public key, API-private is your API private key, and ID is your ID. You can get all of them from your dashboard.

Upload pictures

now you can upload your image using this code:

ImagekitResponse R = Upload.Picture(photo, "/path/", "name.jpg",true);

Notice: photo is your photo which can be a byte array (byte[]) or your photo or local path on your disk (string) or a URL to an existing picture on the web (URi). "/path/" is the desired path of uploaded file (string) . "name.jpg" is the desired name of uploaded file (string). The last parameter is "useUniqueName" which is an optional parameter (bool) with the default value of true.

This method retunes you an object with the type of ImagekitResponse which is the information about the uploaded file.

Name Description Type Sample output
ImagePath The path of uploaded picture in your media library string "/avatar/sample_HJN0fTUtb.jpg"
Size Size of uploaded photo in bytes int 7117
Height Height of uploaded photo int 200
Width Width of uploaded photo int 200
ID The unique ID of your saved picture string "HkiFvuZKZ/avatar/sample_HJN0fTUtb.jpg/original"
FileFolder The real path of uploaded picture in servers string "/HkiFvuZKZ/avatar/sample_HJN0fTUtb.jpg/"
Thumbnail The thumbnail URL of uploaded picture string ""
URL The public URL to your picture string ""
Name The name of uploaded picture in your media library string "sample_HJN0fTUtb.jpg"
Transformation The applied transformation to your picture string ""

Done; You uploaded your picture. Whoa! It was so fast, wasn't it?



This library is an open source project, so all the modifications and contributions are welcome! Just make a fork of this repo, do your changes and make a pull request. We'll check your code ASAP.


If you have any kind of questions or feature request, you can contact or contact via chat support. Also you can post the issues in the issues part.


See also the list of contributors who participated in this project.


This project is licensed under the MIT License - see the file for details