Melvin Tan Gim Huat
Posts: 0
Joined: Sun Oct 14, 2012 11:58 pm

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

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?

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

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

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

Melvin Tan Gim Huat
Posts: 0
Joined: Sun Oct 14, 2012 11:58 pm

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

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?

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

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

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

Melvin Tan Gim Huat
Posts: 0
Joined: Sun Oct 14, 2012 11:58 pm

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

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

Melvin Tan Gim Huat
Posts: 0
Joined: Sun Oct 14, 2012 11:58 pm

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

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.

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

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

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.

Melvin Tan Gim Huat
Posts: 0
Joined: Sun Oct 14, 2012 11:58 pm

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

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!

Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

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

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

Return to “Issues”