Page 3 of 4

How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Wed Dec 19, 2012 2:50 pm
by Melvin Tan Gim Huat

Hi again Marina, appreciate the support.
Unfortunately, the same problem still persists (refer to the screenshot I had in the previous post); photo taking works, photo uploading to Tiggzi DB works, photo filename capture works, but loading of the photo in the app using its filename does not.

Did it work when your team implemented and tested the new code?

I've experimented a fair bit with Tiggzi's camera functionality now. The Destination Type of "File URI" works. However, its counterpart, "Data URL" has not. Could this be the source of the problem?


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Wed Dec 19, 2012 3:33 pm
by Maryna Brodina

Hi :) We'll take a look again. I'll update


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Thu Dec 20, 2012 12:05 pm
by Maryna Brodina

It works if user logged in in your app. If you create new user and try to apload the photo it won't work.


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Fri Dec 21, 2012 3:35 pm
by Melvin Tan Gim Huat

Hi Marina, just to make sure we are talking about the same issue, here's where I am coming from.

There are no issues with uploading the photo. However, when I attempt to load the photo in the app (by searching in the Tiggzi database using the file name), the image fails to load, displaying a question mark instead, just like the screenshot in an earlier comment (please see above).

Is this what you tried and it worked for you?


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Mon Dec 24, 2012 1:03 pm
by Maryna Brodina

Hi! After I made a photo, I click on "Load photo" button and here is what I've got

a href="https://d37wxxhohlp07s.cloudfront.net/s ... 1356354208[/img] /a


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Wed Dec 26, 2012 3:21 am
by Melvin Tan Gim Huat

Merry Christmas Marina!
Thanks, that shows that the code is working correctly, at least on your iPhone.

I looked at the Tiggzi database's Files and noticed a key difference between your photo upload/load attempts and mine. As you can see in the screenshot, the photos uploaded by you are above 100KB in size whereas those uploaded by me were 15 bytes. This means that the photo upload on my iPhone must have gone wrong, i.e. the photos taken were not uploaded to Tiggzi properly.

I know this issue is probably more of the iPhone domain, but will you have any clues why this is occurring?

By the way, I'm using the iPhone 4S, iOS version 5.1.1.

Image


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Wed Dec 26, 2012 3:33 am
by Melvin Tan Gim Huat

And, of course, I assume you were using the exact same code in my app when you successfully tested this photo taking, uploading and loading functionality. Please let me know if otherwise.


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Wed Dec 26, 2012 9:03 am
by Maryna Brodina

Hello! Merry Christmas to you too! Sorry, but no clues why this is happening (I'll ask our dev team and try to update). I tested on iPhone 4 (iOS 6.0.1) using you project backup. If you'd like I can send you that working project backup.


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Fri Dec 28, 2012 3:17 am
by Melvin Tan Gim Huat

It works now! Phew, thanks Marina.
What I did was to upgrade to iOS 6 and it worked.

Will do more testing around this and hope it continues to work correctly. Appreciate your support. Happy New Year in advance!


How to upload a photo to the tiggzi database immediately after it was taken by the phone camera?

Posted: Sun Jan 20, 2013 4:00 pm
by Sean Kelley

I am following this how-to along and have successfully taken photo, but I cannot seem to do the last step:
on Success event on Camera run JS ...
On the page where the photo is taken, I try to add the event under the data tab (the newer interface) and i have the choice to select my mobilecamera1 component and choose 'success' event but there are no other choices including adding a JS. I wonder if there is a problem with interface or I am doing something wrong. If you can see my project its here:
http://project.tiggzi.com/project/ef6... Image