Page 3 of 9

Camera to Database.

Posted: Fri Aug 09, 2013 7:51 pm
by Oleg Danchenkov

Do you have any errors in console?
BTW tutorial will be ready soon.


Camera to Database.

Posted: Fri Aug 09, 2013 10:14 pm
by SteveLacy

Oleg - Since I'm using the camera, I have to test this with the Android tester app. Is there a way to display a console using the tester app?


Camera to Database.

Posted: Fri Aug 09, 2013 10:20 pm
by maxkatz

What would also help, if you can post a curl command to upload images to your database.


Camera to Database.

Posted: Mon Aug 12, 2013 6:37 am
by Oleg Danchenkov

You can use LogCat to see console output
http://developer.android.com/tools/he...
http://stackoverflow.com/questions/32...
Or you can use alerts with try...catch statement in your code
https://developer.mozilla.org/en-US/d...


Camera to Database.

Posted: Wed Aug 14, 2013 11:28 am
by Irakli Agladze

guys, my first question on this tutorial:

"3) Create create_service based on PhotoDB_photos_create_service:
Map Request:

  • photoname.Text to Name in Request

  • photo_buffer from localStorage to photo in Request"

    I don't have any photoname.Text to bind it to name in request


Camera to Database.

Posted: Thu Aug 15, 2013 10:07 am
by Maryna Brodina

Hello! Sorry for late reply. On step 1 add input with name "photoname". Into this input before image load you would need to put name under you save image in DB.


Camera to Database.

Posted: Thu Aug 15, 2013 10:39 am
by Irakli Agladze

Марина, давайте я по-русски попробую, если вы не против.

Насчет предыдущего вопроса - понял, спасибо.

Есть другой - фотографии в БД я сохранять научился, но не понимаю, как мне их отображать на другой странице?
Я делаю маленький web-app в стиле инстаграма, и на странице сабмита фотографии в базу падает также и текстовый комментарий пользователя, его username и тп. Делал примерно в соответствии с этим туториалом и вот этим видео: https://www.youtube.com/watch?v=Jurf2W...

Логин проходит ок, даже сохраняется токен и custom variable для currentusername: https://www.dropbox.com/s/kq2v0vnorth...

При аплоаде тоже все хорошо, и выбранная фотография падает в БД:
https://www.dropbox.com/s/asrr7h5hxw7...

Но я совершенно не понимаю, как сделать так, чтобы на экране "новостной ленты" эта фотография появлялась потом вместе с username, comment и так далее:
https://www.dropbox.com/s/r25gh40fsef...

Не поможете?


Camera to Database.

Posted: Thu Aug 15, 2013 10:40 am
by Irakli Agladze

Еще хочу уточнить, что вся информация о "чек-ине" падает в специальную коллекцию в БД, а сами фотографии - естественно, в файлы в этой БД.


Camera to Database.

Posted: Thu Aug 15, 2013 12:53 pm
by Maryna Brodina

Hi again! I'll reply in English if you don't mind:) it's better to continue conversation in English as this post might help other people who have the same questions.
So if I understand you correctly you don't follow tutorial described in this post - you separately save files in DB? Because here it was suggested to save files into collection column. Am I right?


Camera to Database.

Posted: Thu Aug 15, 2013 2:01 pm
by Irakli Agladze

Hi Marina, sorry for the misunderstanding — I really used only a part of this tutorial, as I needed not only the camera service, but the file uploading feature as well.
If you could assist me with the question how should I do both — I'd be really appreciated.

Thanks,
Irakl