Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

imagebase64 response from camera service is empty

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

imagebase64 response from camera service is empty

Hello,

What device do you use?
What is the OS?

Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

imagebase64 response from camera service is empty

Hi Katya,

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

Thank you
Florian

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

imagebase64 response from camera service is empty

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

imagebase64 response from camera service is empty

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

Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

imagebase64 response from camera service is empty

can you send me your code or project?

Or shall I add you to my project?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

imagebase64 response from camera service is empty

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

Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

imagebase64 response from camera service is empty

of course. the app is called: "gisapp"

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

imagebase64 response from camera service is empty

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.

Florian
Posts: 0
Joined: Wed Feb 20, 2013 5:41 pm

imagebase64 response from camera service is empty

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?

Return to “Issues”