Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Outlook: Ultimate insert images into signature that you can safely send ====== Outlook has a tendency to either not send embedded images with signatures, or it sends links to images (like in OWA) The solution is to convert the image to Base64 string, and use it like that <code html Embedding base64 image string into html><img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." /></code> Now, You can either use an online converter such as [[https://www.base64-image.de/|this one]], or you can start coding yourself: <code csharp c# converter> // convert from bitmap to byte array public byte[] getBytesFromBitmap(Bitmap bitmap) { ByteArrayOutputStream stream = new ByteArrayOutputStream(); bitmap.compress(CompressFormat.JPEG, 70, stream); return stream.toByteArray(); } // get the base 64 string String imgString = Base64.encodeToString(getBytesFromBitmap(someImg), Base64.NO_WRAP); </code> The imgString value is what you want to send Other examples: <code css css> div.image { width:100px; height:100px; background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA...); } </code> <code xml xml> <image> <title>An Image</title> <link>http://www.your.domain</link> <url>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA...</url> </image> </code> software/outlook/signature_pictures.txt Last modified: 2019/10/31 09:05by 127.0.0.1