Do you have any errors in console?
BTW tutorial will be ready soon.
Do you have any errors in console?
BTW tutorial will be ready soon.
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?
What would also help, if you can post a curl command to upload images to your 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...
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
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.
Марина, давайте я по-русски попробую, если вы не против.
Насчет предыдущего вопроса - понял, спасибо.
Есть другой - фотографии в БД я сохранять научился, но не понимаю, как мне их отображать на другой странице?
Я делаю маленький 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...
Не поможете?
Еще хочу уточнить, что вся информация о "чек-ине" падает в специальную коллекцию в БД, а сами фотографии - естественно, в файлы в этой БД.
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?
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