Thank you!
Thank you!
Has anyone done this before? How do I convert the image to Binary data?
Thank you.
Hello Hoken!
Did you mean was it done before in Appery.io?
You can try to export it as Eclipse project and continue to work there.
This reference could be also useful:
http://stackoverflow.com/questions/49...
Sending binary data could be done when you're building an app in Appery.io.
You have to code it yourself.
Following reference could be helpful: http://docs.appery.io/tutorials/uploa...
So basically if I understand this correctly to get this working in the manner Hoken and I would like you need to convert the image to binary?
I don't actually save the image locally so I have a base64 encoding. If I was to convert this to binary and send that it should work?
I've basically given up on using SendGrid. What a waste of time.
We're working on your request. I'll update.
I gave up to... Really, this should be available "out of the box"!
Hi,
This function returns an object you can pass as data of image loading AJAX-call:
codefunction dataURItoBlob(dataURI) {
var byteString = atob(dataURI.split(',')[1]);
var ab = new ArrayBuffer(byteString.length);
var ia = new Uint8Array(ab);
for (var i = 0; i < byteString.length; i++) {
ia = byteString.charCodeAt(i);
}
return new Blob([ab], {
type: 'image/jpeg'
});
}/code
This is good, but why can't i just send the base64 encoding? SendGrid already said they support that.
Thanks.