Page 3 of 8

SendGrid Photograph, easy solution?

Posted: Tue Aug 12, 2014 12:29 pm
by Michael4771079

Hi folks,
I have made the changes lllya mentioned changed parameter to html from text.

if I send message without a photo I get the message, with a small grey box where the photo would be if I had taken one.

when I take a photo and send message nothing arrives
here are some screenshots.
can anyone see the mistake?

thanks

Image

Image

Image

Image


SendGrid Photograph, easy solution?

Posted: Tue Aug 12, 2014 3:15 pm
by Kateryna Grynko

Hi Michael,

Just check the availability of data in a variable 'photo_buffer', and if the data is absent, do not add the tag img. After all, if you add it - then you will just see a gray box.

[quote:]1). You need to change the setting for particular instance of service (on Data tab of a screen);[/quote]You can add several services to a page, and change these settings there (on the page in DATA tab).


SendGrid Photograph, easy solution?

Posted: Wed Aug 13, 2014 9:16 am
by Michael4771079

Hi Evgene,
still struggling here, changed sending to html,
you mention Base64encoded picture should be sent. I cant find this setting or where to put it, can you explain. I had looked at every topic and all docs but to no avail.

Thanks


SendGrid Photograph, easy solution?

Posted: Thu Aug 14, 2014 1:59 pm
by Michael4771079

Hi,
im still stuck here
when I add photo the email does not arrive, please take a look at these screenshots and tell me what settings are wrong,
im sending it as html, I have data url selected and the sendgrid js code for the message appears to be correct, Im saving the details to localstorage and then invoke the sendgrid service, Evegene mentioned sending a base64 ilmage, I cant find this setting.

Image

Image

Image

Image

Image

Image

Image


SendGrid Photograph, easy solution?

Posted: Thu Aug 14, 2014 7:36 pm
by Michael4771079

Hi Katya,
can someone have a look at this problem, the apps name "easylets" app id a4e9c51c-e1f8-455b-810f-c2867a3a2388

Thanks


SendGrid Photograph, easy solution?

Posted: Thu Aug 14, 2014 8:34 pm
by Kateryna Grynko

Hi Michael,

You can obtain a base64 image from a response parameter imageDataBase64 as on your screenshot:
Image


SendGrid Photograph, easy solution?

Posted: Thu Aug 14, 2014 8:42 pm
by Michael4771079

heers Katya,
I have it mapped to localstorage, in the screenshot above mapped to photo_buffer


SendGrid Photograph, easy solution?

Posted: Fri Aug 15, 2014 7:12 am
by Evgene Karachevtsev

Hello Michael,

Could you please look, using weinre, what error occurs when you are sending email: http://devcenter.appery.io/documentat...


SendGrid Photograph, easy solution?

Posted: Fri Aug 15, 2014 9:02 am
by Michael4771079

OK Evgene,
in weinre when I send the email with photo network says "Request URl too large"
here is the screenshot along with the sendgrid settings

Image

Image


SendGrid Photograph, easy solution?

Posted: Fri Aug 15, 2014 9:39 am
by Evgene Karachevtsev

Michael,

It turns out that the query string is too long(because the string's representation of the image is passed in the URL string). Please try to reduce the quality and reduce the height and width of the image in request parameters of camera_service.