Image URL vs image download to display in web application using AWS S3 - asp.net

I have images stored in my AWS S3 and I would like to display it to a user. What is the most efficient way of doing that? Should I get the image url or download the image itself and display.
There are like 1000 images which need to be displayed.
Front-end - Angular
framework - .netcore

It depends on the permissions you have on your bucket. If it's public, then just link directly to the files in AWS. If it's private, then you'll have to download them with something that does have access (such as your app) and serve them to the user from there.

Related

File link in amazon aws s3 bucket using asp.net

I have some images stored on AWS S3 bucket. I am using ASP.NET SDK. Now I can upload/download/delete files through the SDK. But what I want is to get a link to the image files so that if I want to display an image, I can show its thumbnail on my website. I am unable to find anything in ASP.NET. Is there a way to do it?

Uploading application content to Firebase

I am attempting to make my first Android application using the Firebase free trial for the server side of things. My app is fairly limited in scope and it is basically just a way of viewing some pre-created content that I have made.
I have manually created some JSON for the app to parse, and along with the JSON I have some images which I want the app to be able to download. However, I have no idea of how to store these images in Firebase so that they can be retrieved by the app.
My issue is... I have searched every variation of "Upload images to firebase" which I can think of and they are all about the user uploading their own content to Firebase via the app and not for me to upload the content of the app so it is available to be downloaded by the user.
Would anyone be able to point me in the direction of how to set this up? I can upload my JSON to Firebase to create the "database", it is just I do not know how to go about uploading my application data to Firebase so that users can then view it.
Thanks
You can upload your images manually from Firebase Storage.
from the left menu choose Storage and then upload file.
If you need the image URL. Press on the image and it will show details section at the bottom of this section you will find Download URL

AWS Elastic Beanstalk Asp.Net : Cannot view image under my domain after uploading

I have installed AWS SDK for .NET, and by using the toolkit for VS2013 I managed to deploy my application with no problem. The ElasticBeanstalk creates the bucket automatically and names it like elasticbeanstalk-eu-west-1-416461029999
The application has a file uploader which saves the user selected file under the bucket above. My problem is I can view the image by the AWS Explorer, but I would like to view the file by a browser under the domain like www.mydomain.com/Images/filename.jpg
The documentation for static sites says the bucket has to have the same name as the domain name, but the Elastic Beanstalk names the bucket automatically and it is not possible to change it after...
I would really appreciate any help, thanks...
1) First of you have to set ACL permission (Public Read,Write) for particular file
2) you could not use to see image directly Bucket URL. AWS provide "Distribution URL" for file display or view. so you can view file using Distribution URL

How to use Windows Azure CDN with existing ASP.NET webforms application?

I have an ASP.NET Web Application on Azure and want to move my static content - images, CSS to the Azure CDN.
I have over 100 image files being used throughout the application stored in a folder "App_Themes/img" ...
In what way, can I minimize the effort in the move?
My current steps would be ...
- Manually upload all files to cdn ..
- Manually change all urls to the cdn (using Ctrl-H, but still is time-intensive and not error free)
- Somehow manage the testing locally... (Add some code at every page to use a baseurl, depending on debug or release) ...
Is there any way that I could add a new route, etc so that I don't have to manually change the urls, as well as move between file-system urls and CDN to develop the application locally and deploy it.
Thanks a lot ..
I think you can do this via IIS URL rewriting or move static content into a /cdn folder, I haven't tested this but Maarten Balliauw has a great blog post on how serve content from the CDN. "Using the Windows Azure Content Delivery Network"
What I did was added a config entry in the web.config:
and replaced path /App_Themes/SpringDoctor/images/ with <%=System.Configuration.ConfigurationManager.AppSettings["ImagesPath"]%>
And upload all images to the appropriate blob.

HTTP auth and Flex

I have a small query. I wrote a Flex Application with PHP remoting using ZendAMF. i also made and auth system. User provides credentials and i pass them to my gateway where i have a service registered to query a SQL db and verify if the user is registered or not. Thats working perfectly. In my application i am loading MRTG graphs (PNG Files) into Image component. The GRAPHS are inside my Document Root. They are also loading well. Problem is if i type the URL path to the png file i can see it directly without any authentication. to cater that i added htaccess file to MRTG folder inside my document root. Know when i view the images inside my Flex App it asks for HTTP username and password. which i dont want.
In simple words . MRTG PNG's are inside my document root
Can i move them out of document root and still have my Flex App access them ( i tried and failed with that)
I just want the user to be able to view MRTG pngs and not directly from URL.
If you are using ZendAMF, why don't you just create a service method on your service that provides you with those images?
That way you have full control over what happens.
For example you could send them through as a byte array or a base64 encoded string, making it a lot harder to define where the image is actually stored on server disk.
Cheers

Resources