Take picture in PhoneGap using FILE_URI with remote base url - ios

I have a phonegap application which is initialized from a remote URL. I want to take a picture and display it in the app. Per the documentation, I am using FILE_URI as the destination type:
Note: The image quality of pictures taken using the camera on newer
devices is quite good, and images from the Photo Album will not be
downscaled to a lower quality, even if a quality parameter is
specified. Encoding such images using Base64 has caused memory issues
on many newer devices. Therefore, using FILE_URI as the
'Camera.destinationType' is highly recommended.
In my success callback, I try to set the src attribute of an img to the file:// URI returned by phonegap, and I get the standard browser error, "Not allowed to load local resource".
Is there a way to configure a phonegap iOS app to allow access to local files from a remote page?

Related

how to create url of image inside the app using swift

I hv a small app which shows iPhones videos and images in the app.
Now when I access any photo or video, I want to generate its http url using GCDWebServer (e.g. http://my-device.local/photo-12-2019.jpg)
I came across this link (https://github.com/swisspol/GCDWebServer)
which to some extent clears concept but not sure how to exactly convert photo or video to url.
I want to expose url to GCDWebServer on my iPhone.
Any sample code or reference would be good.
Thanks

Do iOS browsers include EXIF photo metadata via browser upload?

I am trying to gleam EXIF metadata from photos uploaded to my server via an iOS device. Does iOS sends EXIF metadata when uploading photos in this manner?
Photos uploaded, via safari mobile or any IOS web browser, are stripped of most of the metadata including datetime and geolocation. The only metadata you receive is:
ColorSpace
Exif IFD Pointer
Orientation
PixelXDimension
PixelYDimension
If you transfer the photo to your desktop browser and upload then the metadata will exist. Also if you use a Hybrid-Native or Native app you can retain photo metadata.
This data was obtained through testing an EXIF data parser in javascript. I couldn't find actual Apple documentation mentioned this "feature"

Uploading image to Azure and getting back its URL

I am writing an iOS app for a service that runs on Azure. I need to be able to upload images (users' profile pictures) and get back the image's URL.
Azure's SDK for iOS doesn't seem to work with Blob, but only with Tables.
On my search, I've found tutorials like this, which gives an intro on the SDK, or this one that shows how to store a base64 string of the image in a table, but that's not what I'm seeking.
Is it possible to upload images to the Blob? If yes, how?
I am not an ios person, but have worked on apps that run on azure and communicate with ios for information hence this might be of your help as I am certain rest services can be accessed from ios.
http://msdn.microsoft.com/en-us/library/azure/dd135733.aspx

uploading images from iPad to a bucket in S3?

I am writing a web app in HTML5 that is supposed to run on iPads.
I would like to upload images from the iPad directly to a S3 bucket.
If that is not possible, I can settle for uploading to my server and then I'll store it on S3 myself.
I've seen on the net that the preferred tool is SWFUpload, but I fear it wont work on iPads.
Unfortunately you're out of luck. Apple block file uploads in iOS Safari. The browser doesn't have access to the iOS file system or photos.
https://apple.stackexchange.com/questions/4104/is-it-possible-to-upload-files-to-a-website-from-safari-on-iphone
You'll see if you go to Facebook's Mobile Web app http://m.facebook.com and try to post a photo, they tell users to email the photo to a custom email address.
If you want photo uploads you'll have to find another route to upload or use an iOS application.

How to stream video from blackberry to Browser

I am creating an application which streams a live feed of the blackberry screen from a blackberry device to a web browser. This should allow a user to view the screen of the blackberry from the browser. Could someone suggest a stepwise method to do this?
Check this method, public static void screenshot(Bitmap bitmap).
Documentation says that it takes a screenshot of the entire screen and saves it into a Bitmap, if supported by IT policy and/or application control. If the method works then it is possible to broadcast the screencast of a device by:
Continuously taking screenshot (maintaining feasible interval) and
Sending them to some server/destination (image compression can be applied before sending).
Multipart Post/ Image Upload Issue - The following links may be
helpful.
BlackBerry Multipart POST Demo - Github
HTTP POST Multipart file upload in JavaME - Nokia Developer
Upload Image in BlackBerry - StackOverflow
Posting Data via Http from Blackberry

Resources