Using s3 upload function using an imageURI? - image

I was wondering if it was possible to upload to S3 using the SDK with an imageURI.
I would like to upload a picture to my S3 bucket from a mobile phone camera or gallery. However, the cordova library only returns an imageURI for this picture. It seems like it doesn't work in the S3 upload function. I would prefer to avoid the complexities of the REST API and just use the SDK. Is this possible if I do not have a file object but only an image URI? I am using the Ionic framework if this is useful information to anybody.
Any help is appreciated.
Thanks

Related

using dropzonejs to upload images to firebase storage?

I am looking for a way to use dropzonejs to upload images to firebase storage. On regular way without dropzone it is no problem. but i like the functionalities of dropzonejs and want to use it.
I would appriciate any help.
Not sure this is possible without ripping out the upload internals of dropzone and replace them with our uploader. The other option would be to set up your own server and use a GCS uploader to upload to Firebase Storage.

Store and use images locally

I'm quite new to addons development on Firefox.
I need to store an image from a given url, and then get the path to upload on another web. I read the Mozilla docs but can't figure how to do this.
I appreciate any help.
This does exactly what you need: How to download image to desktop with OS.File - you download the image with XHR, you then write that data to anywhere you want with OS.File.writeAtomic Instead of that XHR function, because you are using the SDK you should use the request module - https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/request

Django Rest Framework image upload and get image

I have a use case where an angular front end will need to submit image and Django Rest Framework API will need to save it to filesystem during image upload calls. During image download scenario the image will need also be served up from filesystem.
If someone already figured out this usecase please post it. Help will be highly appreciated.
Django REST framework provides an ImageField that can handle the uploading of images using Django's file upload handlers. So you might be interested in learning how it is done in Django first: Need a minimal Django file upload example

Can I store image on Firebase as file, instead of a data:url?

I want to store image on firebase and want to use it somewhere. I went through this SO post and tried this demo.
It stores images as data:url format. But I want to upload and store images as physical file so I can use it further, something like this url http://example.com/some_image.png
Can I achieve this with Firebase?
No. The Firebase API currently does not support storing files outside of its database.
Update: at Google I/O 2016 Firebase added Firebase Storage to its offering, which is a service dedicated to storing files.

How do I bulkupload image BLOBs in Google App Engine?

I have a model which *I want* to contain an image blob. I have the images on my local filesystem, but due to the nature of my application, I need to get them in the datastore. Here's my model:
class JeanImage(db.Model):
type = db.StringProperty(required=True, choices=set(["main","front","back","detail"]))
image = db.BlobProperty(required=True)
I haven't tried anything yet because I'm not great when dealing with images.
How can/should I convert my images to blobs so that I can get them in my bulkupload csv file?
Mark
You can do it, just not with the bulk uploader. You need to access the remote api directly.
This site has a basic example of how to use it:
http://www.billkatz.com/2009/2/Remote-API-Hello-World
Its pretty slow and a good idea to have a retry mechanism.
A more detailed description can be found here:
http://code.google.com/appengine/articles/remote_api.html
I believe that what you are trying to achieve is not possible using the app engine bulkloader.
Instead try to create some kind of uploader yourself. For example you could upload the images as a zip file and then extract it an store it in the datastore. The code for that should be fairly straightforward if you can map your images to the datastore entity (e.g. by using a naming convention).

Resources