Page 1 of 2

imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 10:39 am
by Florian

Dear customer service,

the imageDataBase64 response from your camera service seems to be empty. I tried to store this response to a local storage variable and send them to my remote server.

precode
var imageBase = localStorage.getItem('imagebase');
var params = {image: imageBase};

$.get(serverUrl, params, function(data) {
alert('imagebase');
});
/code/pre

I also tried to store the imageURI Response in a local storage variable (same code) and it worked pretty well.

This issue is related to this problem:
https://getsatisfaction.com/tiggzi/to...


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 10:55 am
by Kateryna Grynko

Hello,

What device do you use?
What is the OS?


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 10:57 am
by Florian

Hi Katya,

I am using the latest iOS (6.1.2) on an iPhone 4S. xCode-Version: 4.6.

Thank you
Florian


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 10:59 am
by Kateryna Grynko

We will try to reproduce it. I'll update.


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 1:51 pm
by Kateryna Grynko

It works on iPhone for me.

Please check name of localStorage variable where you map response parameter "imageDataBase64".
Response parameter "imageDataBase64" looks like:
data:image/jpeg;base64,AABB...


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 2:25 pm
by Florian

can you send me your code or project?

Or shall I add you to my project?


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 2:39 pm
by Kateryna Grynko

Could you share your app with support@tiggzi.com?


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 2:41 pm
by Florian

of course. the app is called: "gisapp"


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 3:14 pm
by Kateryna Grynko

In CameraService parameters, you should change destinationType from "File URI" to "Data URL".
Then in response parameters, "imageURI" will be empty but "imageDataBase64" will have image data.


imagebase64 response from camera service is empty

Posted: Thu Feb 21, 2013 3:43 pm
by Florian

Hi Katya,

woho! you are awesome. thanks for this little hint - i could swear that i tried this. anyway, it works! but now I can't display the image (taken by the camera) on the image-component, because the imageuri variable is now empty. any suggestions on this?