Email .JPG image on Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Email .JPG image on Android
I am having difficulty emailing a .JPG file on Android with Gmail.
Here is my code
on mouseUp
export snapshot from rect "0,0,400,677" of this card to FILE (specialFolderPath("documents") & "/sellnet.jpg") as JPEG
put fld"sellemail" of card 2 into treciep
put specialFolderPath("documents") & "/sellnet.jpg" into tFile
put tFile into tAttachment["file"]
put "Check This Out" into tAttachment["name"]
put"image/jpg" into tAttachment["type"]
mobileComposeMail "Seller Est Net Sheet", treciep,,,"Please See the Attached Estimated Seller's Net Sheet", tAttachment
end mouseUp
The file gets sent ok as an attachment but the file type ".JPG" is dropped and I can't open the file without re naming it.
I have tried variations on the " put"image/jpg" into tAttachment["type"] " statement to no avail. Some platforms have no trouble with this but my android phone does.
Suggestions?
Thanks
Tom
Here is my code
on mouseUp
export snapshot from rect "0,0,400,677" of this card to FILE (specialFolderPath("documents") & "/sellnet.jpg") as JPEG
put fld"sellemail" of card 2 into treciep
put specialFolderPath("documents") & "/sellnet.jpg" into tFile
put tFile into tAttachment["file"]
put "Check This Out" into tAttachment["name"]
put"image/jpg" into tAttachment["type"]
mobileComposeMail "Seller Est Net Sheet", treciep,,,"Please See the Attached Estimated Seller's Net Sheet", tAttachment
end mouseUp
The file gets sent ok as an attachment but the file type ".JPG" is dropped and I can't open the file without re naming it.
I have tried variations on the " put"image/jpg" into tAttachment["type"] " statement to no avail. Some platforms have no trouble with this but my android phone does.
Suggestions?
Thanks
Tom
Re: Email .JPG image on Android
Hi Tom,
maybe this applies to your problem:
http://forums.runrev.com/phpBB2/viewtop ... 53&t=20344 ?
And please do ALWAYS note the Livecode version your are using, thanks!
Will move this thread to the ANDROID forum.
Best
Klaus
maybe this applies to your problem:
http://forums.runrev.com/phpBB2/viewtop ... 53&t=20344 ?
And please do ALWAYS note the Livecode version your are using, thanks!
Will move this thread to the ANDROID forum.
Best
Klaus
Re: Email .JPG image on Android
Hi Tom
"put"image/jpg" into tAttachment["type"] "
should be
"put image/jpeg into tAttachment["type"] "
Not sure if you meant to have the quotes around image/jpg but they shouldn't be there (as well as jpg should be jpeg).
That should solve it for you.
Simon
Edit: ooops... the quotes should be there.
"put"image/jpg" into tAttachment["type"] "
should be
"put image/jpeg into tAttachment["type"] "
Not sure if you meant to have the quotes around image/jpg but they shouldn't be there (as well as jpg should be jpeg).
That should solve it for you.
Simon
Edit: ooops... the quotes should be there.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Email .JPG image on Android
Code: Select all
on mouseUp
export snapshot from rect "0,0,400,677" of this card to FILE (specialFolderPath("documents") & "/sellnet.jpg") as JPEG
put fld"sellemail" of card 2 into treciep
put specialFolderPath("documents") & "/sellnet.jpg" into tFile
put tFile into tAttachment["file"]
put "Check This Out.jpg" into tAttachment["name"]
put"image/jpeg" into tAttachment["type"]
mobileComposeMail "Seller Est Net Sheet", treciep,,,"Please See the Attached Estimated Seller's Net Sheet", tAttachment
end mouseUp
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it
Re: Email .JPG image on Android
hmmm..
What does this stack do for you?
"Updated stack using composeMail" found here:
http://quality.runrev.com/show_bug.cgi?id=11895
it has export in it.
Simon
What does this stack do for you?
"Updated stack using composeMail" found here:
http://quality.runrev.com/show_bug.cgi?id=11895
it has export in it.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Email .JPG image on Android
I am using LC 6.6.2 rc 3trags3 wrote:I am having difficulty emailing a .JPG file on Android with Gmail.
Here is my code
on mouseUp
export snapshot from rect "0,0,400,677" of this card to FILE (specialFolderPath("documents") & "/sellnet.jpg") as JPEG
put fld"sellemail" of card 2 into treciep
put specialFolderPath("documents") & "/sellnet.jpg" into tFile
put tFile into tAttachment["file"]
put "Check This Out" into tAttachment["name"]
put"image/jpg" into tAttachment["type"]
mobileComposeMail "Seller Est Net Sheet", treciep,,,"Please See the Attached Estimated Seller's Net Sheet", tAttachment
end mouseUp
The file gets sent ok as an attachment but the file type ".JPG" is dropped and I can't open the file without re naming it.
I have tried variations on the " put"image/jpg" into tAttachment["type"] " statement to no avail. Some platforms have no trouble with this but my android phone does.
Suggestions?
Thanks
Tom
Gmail version 4.8 on a LG G2 phone Android version 4.4.2
The put "image/jpeg" form has the same error.
Thanks
Tom
Re: Email .JPG image on Android
Hi Tom,
The report says 6.6.2 RC 4 has the fix.
Simon
The report says 6.6.2 RC 4 has the fix.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!