I am trying to get a static image of a map from google based on a postcode.
Is there any reason why the http get media plugin should not work to return the map into an array?
var image_byte_array = plugins.http.getMediaData('http://maps.google.com/maps/api/staticmap?center=LS17 8QX,UK&zoom=14&size=400x400&sensor=false&format=JPEG&key=ABQIAAAAXzUEWFYkbma8HQzQG8JepxT4mbrs5KoQNT3zkrxnhtzyG1Hn0hSEKiT5B1m_We7ikYnNLkc8srao1A');
This works when i paste it into the web browser on my computer, but returns 0bytes in the array when i use with the Servoy getMediaData command?
Maybe i am struggling with the API key as i am not on my servers domain as i am in developer, but it still works from safari?
I know you can do more complicated stuff, but i am trying to grab this to then attempt to convert it into an MMS message based on dynamic consulting postcode addresses.
Thanks
David