Xamarin
Learn how to connect your Xamarin app to Filebase.
Xamarin is a mobile application development platform for Windows, iOS and Android applications. An Xamarin app can be built with the .NET and C# frameworks using Xamarin Studio or in Microsoft's Visual Studio. The AWS Transfer Utility can be configured within an Xamarin app to connect to Filebase.
This workload package includes the templates and frameworks for Xamarin.


- AWSSDK.S3
- AwsSignatureVersion4

Xamarin includes a wide range of implementation for creating Android, iOS, and Windows Applications. This code snippet is a single example of a stand alone file download. This does not include other application functionality, such as a User Interface or Button configuration. Filebase is unable to provide specific configurations for custom applications due to their individualized nature.
using System;
using System.IO;
using Amazon.S3;
using Amazon.S3.Model;
using Amazon.S3.Util;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
AmazonS3Config s3Config = new AmazonS3Config
{
ServiceURL = "https://s3.filebase.com",
};
var accessKey = "Filebase Access Key";
var secretKey = "Filebase Secret Key";
var s3Client = new AmazonS3Client(accessKey, secretKey, s3Config);
var transferUtility = new Amazon.S3.Transfer.TransferUtility(s3Client);
transferUtility.Download("Local/Path/To/Download/File/File.name",
"Filebase-Bucket-Name",
"Object-Name-To-Download");
}
}
}
Edit this code with your:
- Filebase Access Key
- Filebase Secret Key
- Local Path Where To Download The File To
- Filebase Bucket Name
- Object Name to be Downloaded
using System;
using System.IO;
using Amazon.S3;
using Amazon.S3.Model;
using Amazon.S3.Util;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
AmazonS3Config s3Config = new AmazonS3Config
{
ServiceURL = "https://s3.filebase.com",
};
var accessKey = "Filebase Access Key";
var secretKey = "Filebase Secret Key";
var s3Client = new AmazonS3Client(accessKey, secretKey, s3Config);
var transferUtility = new Amazon.S3.Transfer.TransferUtility(s3Client);
transferUtility.Upload("Local/Path/To/File/To/Upload",
"Filebase-Bucket-Name");
}
}
}
Edit this code with your:
- Filebase Access Key
- Filebase Secret Key
- Local Path Where The File To Upload Is Located
- Filebase Bucket Name
If you have any questions, please join our Discord server, or send us an email at [email protected]