Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

What is the Camera's event.media file type

Is it a .jpg, .png, or just a blob image that needs to be saved as a file with an extension?

I am trying to send the event.media file to a server, but it seems to only accept files with extensions.

— asked May 4th 2010 by Justin Hall
  • blob
  • camera
  • extensions
  • image
  • images
0 Comments

3 Answers

  • It is a binary image file, I am able to save it pretty easily with ColdFusion

    <cfimage action="write" source="#params.media#" destination="#loc.destination#" />

    Notice I am passing the params.media directly as a source

    — answered May 4th 2010 by Raul Riera
    permalink
    0 Comments
  • Thanks Raul.

    I'm trying to save the file upload with a php file.

    $tmp = $_FILES['image'];

    — answered May 4th 2010 by Justin Hall
    permalink
    0 Comments
  • i think that the file-system of mobile-machine does not the same as pc,so it doesn't has extension,it's just a binary file

    — answered September 18th 2010 by Wen Bin
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.