Page 1 of 1

Store image from camera

Posted: Wed Jan 14, 2015 10:37 am
by NorulHidayu Binti Lazim

Hi
Image

this is my asset collection where consist of asset title, description and asset file. For the asset file i set it as 'file' type which the data might be image, video or audio.

I would like to know how to store image from camera into the 'file' datatype in collection. In this situation, it working but to display the image taken through the camera, it give long id in my assFile column. please help ASAP

Thank You in advance :)


Store image from camera

Posted: Wed Jan 14, 2015 10:00 pm
by Illya Stepanov

Hi -

It's better to use predefined Files collection in Appery.io database for files storage.

Here is shown how to use camera images uploaded to the database: http://devcenter.appery.io/tutorials/...


Store image from camera

Posted: Thu Jan 15, 2015 9:22 pm
by NorulHidayu Binti Lazim

if i using predefined files collection, how to store the 'assTitle' and 'assDesc'? is there any way to upload image/ file? in my apps, user can choose either upload image through camera or through phone gallery. Can you show the step to upload any types of file into datatase with the 'assetTitle' and 'assetDesc'... please help me.. Im running out of time.


Store image from camera

Posted: Fri Jan 16, 2015 9:07 am
by Evgene Karachevtsev

Hello,

Could you please clarify, did you try the approached suggested by Illya? Also please specify, have you seen this tutorial about how to upload files to a db: http://devcenter.appery.io/tutorials/...


Store image from camera

Posted: Sun Jan 18, 2015 5:14 pm
by NorulHidayu Binti Lazim

it work before this. now i do not know suddenly it not working anymore. when i try to upload, it not store in the database.

how to store image select from gallery.. can u tell me the steps?


Store image from camera

Posted: Sun Jan 18, 2015 6:17 pm
by Ihor Didevych

Hello,

Please clarify, did you try the approached suggested by Illya and Evgene?


Store image from camera

Posted: Sun Jan 18, 2015 7:35 pm
by NorulHidayu Binti Lazim

yes.. i have try and it working before this.. now, when i clicked upload button, it not store in database.


Store image from camera

Posted: Sun Jan 18, 2015 9:56 pm
by Ihor Didevych

Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and send us the app name.