Getting the image from the photo library
Using the getPictureFromPhotoLibrary function, you can get the image stored in the photo library.
Method summary
getPictureFromPhotoLibrary(Options, base64)
- returns – Returns the file URI or a base-64 encoded string
- params
- Options – Object
- base64 – A Boolean flag to indicate that the returned object should be a base-64 encoded string.
Note: If you pass true as a param indicating that the returned object should be a Base-64 encoded string, its content has to be prefixed with “data:image/jpeg;base64,” before rendering it.
The following example shows how you can get an image from the local file system using the getPictureFromPhotoLibrary function:
<cfclientsettings enableDeviceAPI=true> |
Example