After fiddling around for many hours, I tried this approach: - Download the image - Byte64-encode the downloaded bitmap - Use the resulting string as the image source
String thumbData = Base64.encodeBytes(data); String thumb = "data:image/jpeg;base64," + thumbData; (Base64 is an open-source Base64-encoder I found) Sadly, this produced the same result as before. No image, just [OBJ]. :( -Zarah. On Oct 27, 6:23 pm, Zarah Dominguez <[email protected]> wrote: > Uh-oh, that sounds ominous. Just out of curiosity, how would I do it > if I have my own app? > > As for the GMail App alternative, is there a way to send the image an > attachment without first having to save it in a cache or the SD card? > > Sorry for so many questions. > > Best regards, > Zarah. > > On Oct 27, 6:03 pm, Kumar Bibek <[email protected]> wrote: > > > > > > > > > The Gmail app, or any other email app doesn't have a published set of > > parameters that you can use to achieve this. Had it been your app, then I > > know how to do it. But, with the Gmail app, I have no clue. > > > On Wed, Oct 27, 2010 at 3:28 PM, Zarah Dominguez <[email protected]>wrote: > > > > Hi Kumar, > > > > Thanks for your response. I'm having misgivings about the GMail app. > > > First of all, it doesn't even recognize the market:// URI, what's up > > > with that? > > > > Anyway, do you have any suggestions on how can I achieve what I want? > > > As much as possible I want the image to be embedded/inline instead of > > > an attachment. > > > > Thank you again, > > > Zarah. > > > > On Oct 27, 5:41 pm, Kumar Bibek <[email protected]> wrote: > > > > I suspect if you the gmail app has been designed to do so. Your approach > > > is > > > > correct, but it all depends on how the GMail app is designed. > > > > > On Wed, Oct 27, 2010 at 3:06 PM, Zarah Dominguez <[email protected] > > > >wrote: > > > > > > Hi guys, > > > > > > Hope you can help me with my question. > > > > > > I am trying to embed an image in an email body. I am trying to use > > > > > the ImageGetter to retrieve the bitmap, and send my Intent like this: > > > > > > Intent intent = new Intent(Intent.ACTION_SEND); > > > > > intent.setType("text/html"); > > > > > intent.putExtra(Intent.EXTRA_SUBJECT, > > > > > getResources().getString(R.string.recommend_vid_title)); > > > > > intent.putExtra(Intent.EXTRA_TEXT , Html.fromHtml(emailBody, imgGet, > > > > > null)); > > > > > > When viewing the draft using the GMail app, all I see is [OBJ] instead > > > > > of the bitmap. > > > > > > I tried setting the email contents to a TextView just to check if it > > > > > is correctly formatted and the image shows up fine. Is this a problem > > > > > with the GMail app or am I doing something stupid? > > > > > > I am testing using the Samsung Galaxy S. Hope someone can help. :) > > > > > Thanks in advance! > > > > > > Best regards, > > > > > Zarah. > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups "Android Developers" group. > > > > > To post to this group, send email to > > > [email protected] > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<android-developers%2Bunsubs > > > > > [email protected]><android-developers%2Bunsubs > > > [email protected]> > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<android-developers%2Bunsubs > > > [email protected]> > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

