Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16174] TiAPI: Add file information to returned Blob when camera is set to saveToPhotoGallery = true

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsTiAPI
Labelsn/a
ReporterAndrew Greenstreet
AssigneeUnknown
Created2014-01-10T21:38:19.000+0000
Updated2018-02-28T20:03:48.000+0000

Description

It would great, if when setting saveToPhotoGallery = true for an image taken with the camera, that file information is returned to the Blob. Currently, the file is saved, but we have no way of know the name or path of this file. This would require a quick update to TiCameraActivity.java turning private static void saveToPhotoGallery(byte[] data) into private static File saveToPhotoGallery(byte[] data) And updating the Blob in public void onPictureTaken(byte[] data, Camera camera) With a TiFile reference. I'm not sure if iOS has this same issue.

Comments

  1. Ritu Agrawal 2014-01-12

    Moving this enhancement request to engineering for further evaluation and prioritization.
  2. Andrew Greenstreet 2014-01-14

    I've made this change. Please see: https://github.com/appcelerator/titanium_mobile/pull/4968

JSON Source