This is how I inserted the image: Somehow I extract theMessage between the qr[ and ] and record the position (pos)
String QRurl = "http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl="; Image img = new Image(QRurl+theMessage, 200,200,theMessage); e.getBlip().getDocument().insertElement(pos,img); by the way: the servlet fails if you specify the new Image without the size. With kind regards, Hans Nouwens. -----Original Message----- From: tachoknight [mailto:tachokni...@gmail.com] Sent: zaterdag 21 november 2009 5:46 To: Google Wave API Subject: [Google Wave APIs] Re: announcing the QR code robot "QRcody" Works well for me. How are you setting the image in the blip? Greetings from Chicago, IL, USA On Nov 20, 7:53 pm, Hans Nouwens <hans.nouw...@gmail.com> wrote: > Hi, > > The first somewhat sensible robot I build is running. It replaces QR[my > message or URL] with a "square barcode" your phone can read. > Please try it and let me know what you think. > > qrc...@appspot.com > > two remarks: > - strangely the replace does not work if the closing bracket is the very > last character in the blip. Please add any character such as a space. > - Long URL's (such as streetview makes) can be rendered as a barcode. The > barcode size remains the same but the information density increases. My > phone has a hard time reading the pixels but it seems to work most of the > time. > > With kind regards / met vriendelijke groet, > Hans Nouwens. -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=. -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=.