Image & video library uploads AWS, cloud front using asp.net - asp.net

I need to develop an web based app in .net and upload image, Files and videos to AWS using asp.net and also make these files downloadable using link to aws source.
Looking at Amazon AWS sort of confused me. with so many products.
I would appreciate how can we develop .net based app which will upload different kinds of large files to amazon aws .
We want to host this app on different Server and upload file to aws server.
Not sure where to start from of what products to look for on amazon.
Confused with cloud front, amzon buckets etc..

After re-reading your question and noticing that you want to host your app externally to AWS, all you will need at this point is:
S3 (Simple Storage Storage)
This will host your static files - images, videos, files. Files stored in S3 can be made publically accessible via URL.
Your .NET application will make use of the AWS S3 SDK for interacting with your S3 bucket. This abstracts the technical details and makes it simple to CRUD files in S3.
Here's an example of the code you'll need.
At a high level, what you'll need to do:
Create Amazon AWS account
Create S3 bucket
Include AWS S3 SDK to your application
Deploy and test
Authentication
If you want to make some or all of the files in your S3 bucket public, you will create a bucket policy.
As your application is not going to be hosted in AWS, you will be authenticating using access keys, ensure these are protected and also ensure these are not generated from your root AWS account.

Related

Is it possible to use BitBucket as a cloud storage?

My team is currently thinking about uploading files to our repository (BitBucket) to minimize storage cost on our on-prem DC. We'd like to build a web application (ASP.NET) that will upload files to the application's repository on a separate folder. Basically using the repo as a cloud storage.
I have little knowledge on repositories and I think repos should only be used for code/versioning. I'd like to explain why is this feasible or not to my team.
Is it possible to use BitBucket as a cloud storage why or why not?

Hosting SQLite DB on Azure Storage?

I need to host an SQLite database on Azure that will be shared among several web apps. My only options seem to be Azure Blob or File Storage (since they got rid of the "Azure Websites" that provided dedicated storage shared among web instances). However, there does not appear to be any way to map an Azure Storage share to a drive that the Web App will recognize, and thus no way to generate a path that SQLite can use. And obviously, SQLite can't use REST APIs to access the DB without tremendous hacking in the SQLite VFS.
So I'm wondering if anyone has successfully hosted an SQLite DB on Azure Storage such that it was accessible to a Web App?
Azure Web Apps (formerly known as Web Sites) still exists, and still has durable, shared storage across your web app instances.
You cannot use a blob to hold SQLite, as it is not compatible with file I/O (it has a REST API for access). And you cannot simply attach an Azure File Storage volume (you can use one, via API, but cannot mount it to an Azure Web App instance).
Nothing's changed with Web Apps: just place your SQLite database in a directory underneath your app's root directory.

How to authorize a desktop app to send data and files to Firebase?

I am working on an application built using web technologies (html, css, js) that will run as a desktop app using electron. The app will connect with database and file storage services hosted on firebase. Users of the application will not need to sign in to the application in order to authenticate, but the application will be both reading and writing data on firebase's servers.
We don't want to allow anyone not using the application (or firebase's console) to be able to write to or modify the database or upload or delete files from storage.
There will also be a website which will only be able to read the firebase-stored content. If possible I would like to limit reading of the data to that site and the application, but if that's not possible then opening up the stored data and files to be read by anyone wouldn't be an issue.
What is the best way to configure authorization for this app and website?
Thanks!

Uploading file Azure Clound Service WebRole gives me an error: Access to path denied

I have an ASP.NET MVC Application running as an Azure Cloud Service WebRole and I need to b able to upload files to my /Views/Whatever directory so I can quickly edit files on the fly without having to re-publish which can take 30 minutes.
How can I set the permissions to allow me to save files to this path?
If it's a single instance Web Role (which I assume it would be, I can't imagine you editing files on each one of the instances), then you can just enable Web Deploy on your deployment and be done. Then you can use Web Deploy to send the updates to your site without having to RDP. Just keep in mind that if for whatever reason the machine has to be moved or re-imaged (e.g. host updates) you'll lose your changes if they are not part of the Cloud Package (cspkg).
You can enable the option as part of the deployment of your Cloud Service.

Compute needed to use Azure blob storage?

I have an ASP.NET application running on shared hosting and want to use Windows Azure blob storage to store images (my shared hosting has limited storage). My application will upload and download these images from/to the client PC.
I created a new cloud project to test this out and got it working successfully with the offline storage emulator, but I noticed that the cloud project has a web worker role which, I believe, needs a compute instance when deployed to Azure. Azure storage is very cheap, but if I need a compute instance for my application to talk to to access it then it becomes much more expensive, even with the smallest instance.
My question is - do I need a compute instance in order to upload and download files to blob storage or can my application talk directly to the blob storage?
Short answer: You do not need compute instances to talk to Azure storage. You can talk to Azure storage directly from client apps or from apps hosted by other providers.
Nor do you need to create a new Cloud project within Visual Studio to take advantage of Azure blob storage. Simply, reference appropriate .DLLs (Azure Storage Client) and you're good to go.

Resources