How to send a Picture using Arduino and ESP8266
Posted: 29. May 2017, 22:53
Hi
I have Everything working fine sending notifications with dynamic data,
but I seem not get it right sending a Picture, or sending the weblink of a Picture I want to be displayed in the
pushsafer notifications?
What am I getting wrong here?
I use http.post and it works all fine, but I don't get the Picture in my iPhone?
CODE
====
Message += String(F("&p=data:image/jpeg;base64,"));
Message += rbase64.encode(F("weblink of my Picture.jpeg"));
Weblink is made of http: followed by //iot.mydomain.se/filename with .jpeg in the end
(Hope you get it since I am not allowed rtio send the correct weblink
Above is part of the message sent, but my iPhone only shows a very small 2mm x 2mm rectangle
What am I doing wrong here?
Appreciate all the help !
Best regards
Thorbjörn
I have Everything working fine sending notifications with dynamic data,
but I seem not get it right sending a Picture, or sending the weblink of a Picture I want to be displayed in the
pushsafer notifications?
What am I getting wrong here?
I use http.post and it works all fine, but I don't get the Picture in my iPhone?
CODE
====
Message += String(F("&p=data:image/jpeg;base64,"));
Message += rbase64.encode(F("weblink of my Picture.jpeg"));
Weblink is made of http: followed by //iot.mydomain.se/filename with .jpeg in the end
(Hope you get it since I am not allowed rtio send the correct weblink

Above is part of the message sent, but my iPhone only shows a very small 2mm x 2mm rectangle
What am I doing wrong here?
Appreciate all the help !
Best regards
Thorbjörn