Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Camera to Database.

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

SteveLacy
Posts: 6
Joined: Fri Apr 20, 2012 11:54 pm

Camera to Database.

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Camera to Database.

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

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Camera to Database.

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...

Irakli Agladze
Posts: 0
Joined: Tue Aug 06, 2013 1:44 pm

Camera to Database.

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Camera to Database.

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.

Irakli Agladze
Posts: 0
Joined: Tue Aug 06, 2013 1:44 pm

Camera to Database.

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

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

Есть другой - фотографии в БД я сохранять научился, но не понимаю, как мне их отображать на другой странице?
Я делаю маленький 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...

Не поможете?

Irakli Agladze
Posts: 0
Joined: Tue Aug 06, 2013 1:44 pm

Camera to Database.

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Camera to Database.

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?

Irakli Agladze
Posts: 0
Joined: Tue Aug 06, 2013 1:44 pm

Camera to Database.

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

Return to “Issues”