Embedding HTML images into output

Hi. My report produces html output that includes images. Later this html code is being send to Microsoft Exchange so end user can actually see the report in his mail box. But for this I need to make images not a reference to a file on the file system, but embed as part of HTML .
How can I do it?
Is it something that can be done programatically with Java

Moving to Muse forum.

Similar Messages

  • Embedding an image into Mail

    How exactly do you embed images (.jpeg) into a mail message so that it does not come up as an attachment?
    Gmail, outlook, yahoo mail, etc. all read attachments as an attachment that needs to be opened and only through Apple Mail can users see an attachment already opened (giving the appearance of an embedded image, but it's not).
    Any help on embedding images into Apple Mail (besides through using the signature)?

    I tried creating a Stationary but I am fairly new to Mail and am unfamiliar with creating it successfully. I create it, then it creates the Custom folder in which my stationary will not show up in the mail message. It will show up in the folder, I just am unable to get it to show up in the message. Is there a format to creating stationaries? Or perhaps a different way to embed images?

  • Turning HTML image into PNG

    Hi,
    I don't think this will work but before I give up entirely I decided that I should ask people who would know more than me. I created a HTML image through work's photoshop cs4 to be uploaded onto our Linkedin pages' hero image. However, LinkedIn does not support html images but it does support png. Is there a way that I can convert the html file into png and still make it clickable?
    I hope this makes sense
    Thanks,
    Nash

    Helios,
    The way I (mis)understand it, you may:
    1) Create a rounded rectangle/square, or a rectangle/square and apply the rounding as an effect, that has the desired outer shape, placed on top of the image;
    2) Select both and Object>Clipping Mask>Make.

  • Embedding HTML page into Flex using Adobe AIR

    Hi,
    This is Siva Kumar. Need help in embedding an HTML in Flex .
    We are using Adobe Air. To embed an HTML in Flex we used
    <mx:HTML> tag. Its working fine but whts the problem is its
    not allowing to download files / attachements. I tried to use
    google flex iframes to resolve this issue. I am able to download
    files/attachments if I open application as web / standalone. If I
    try to open same application using adobe air its giving error like
    " ExternalInterface is not available in this container.
    Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or
    other browsers that support NPRuntime are required"
    Later wht I found is at present ExternalInterface is not
    supporting adobe air.
    Could anybody help me to resolve this issue. If anybody has
    any idea on how to overcome this issue. Please suggest me to
    resolve this issue. Thanks in Advance.
    Thanks,
    Siva Kumar

    looks like your equipmentArray is empty. Put a breakpoint inside that method to see if there is any data.

  • Embedding HTML image logo in a JSP file

    Hi all,
    I'm embedding a .jpg logo in my e-Commerce site JSP page, hence coding in HTML. I want to show both my companyname in text and my company logo in jpeg file in a single frame. Can someone please tell me how I'll be able to do that?
    Thx.
    S
    null

    Wow, this is absolutely incredible... you try to parse an empty String to an int and it throws an exception... I'd never have thought.

  • Inserting or embed and image into cfmail output from a database-stored path to an actual image.

    I am trying to insert or embed and image into cfmail from a database-stored path to an actual image. The actual JPEG image is stored in a folder called "images_personnel". The path to the image under the column titled photopath is stored in my database table as "/file/images_personnel/28.jpg". Displaying the image on the screen renders without a problem, embedding the same image as part of a cfloop query does not insert/embed the image into an email. All of the other output of the same cfloop displays and emails just fine. However none of the photos of each personelle show up. What an I doing wrong?
    My code is below:
    <cfquery name="Staffreport" datasource="master">
    Select staffreport.*, name.personnelid, name.email, name.last, name.noiid, stafflt, CONCAT(name.fname,' ',name.middle,' (',name.last,')') AS teammember, CONCAT(name.fname,' ',name.middle) AS teammember2, concat(name.photopath,'',name.photo)as hisphoto, stafflt.*, trim(concat(ltfname,' ',ltmiddle)) as LT from Staffreport, name, stafflt
    where 0=0
    and stalt = '#Session.user_id#'
    and ltid = '#session.user_id#'
    and staweekbegin = <cfqueryparam value="#form.staweekbegin#" cfsqltype="cf_sql_date" />
    AND staweekend = <cfqueryparam value="#form.staweekend#" cfsqltype="cf_sql_date" />
    AND stapersonnelid = personnelID
    <!---AND ltid = stalt--->
    AND CITY = 'richmond'
    AND STATUS <> 'd'
    AND STATUS <> 'T'
    AND type = 'personnel'
    Group by personnelid
    Order by teammember
    </cfquery>
    <cfmail>...
    <cfloop query="staffreport"><br />
    <table width="90%" border="0" cellspacing="2" cellpadding="4" align="left">
      <tr>
        <td colspan="2" align="center" valign="top" nowrap="nowrap" bgcolor="cccccc"><strong><font color="black"><cfif #staffreport.last# eq ".">#Ucase(Staffreport.teammember2)# <cfelse>#Ucase(Staffreport.teammember)#</cfif> - ID: <cfoutput>#Staffreport.noiid#</cfoutput></font></strong></td>
      </tr>
    <tr>
        <td align="left" valign="top" nowrap="nowrap" bgcolor="#000000">Name:</td>
        <td>#Staffreport.teammember#</td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Photo:</td>
        <td bgcolor="EBEBEB">
    <img src="#staffreport.hisphoto#" alt="Photo" width="98" height="98">
    </td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Email:</td>
        <td bgcolor="EBEBEB">#staffreport.email#</td>
      </tr>
    </table>
    </cfloop>
    </cfmail>

    You'll need to provide a full URL link to the image ("http://mywebserver/file/images_personnel/28.jpg"), not just a relative path.  Remember, the email client that is used to view the email content knows nothing of the internals of your web server - it can only follow a complete URL to get images and other resources.
    -Carl V.

  • I embedded some HTML code into adobe Muse but not displaying when the pages are Exporting to HTML

    I embedded some HTML code into adobe Muse and when I published the remote site on business catalyst the (Add This widget) HTML code shows up but when I exported the site to HTML pages and view the index page in the browser (Safari, Chrome, Firefox) the (Add this widget) HTML code wouldn't display on any of the pages. I've used this code before on other Muse sites not sure what could have happened. Thnx!!!

    Hi,
    Please take a look at this post for a similar discussion : Re: When i export my muse website my youtube video links stop working. Why is this?
    Regards,
    Aish

  • Embedding HTML into a JSFF dynamically

    Hi,
    I have a requirement where I need to embed an HTML table into a jsff (popup).
    I have a method which returns me a String (HTML) based on various other dynamic conditions.
    The returned HTML is a table. Now I need to show this HTML in a popup when user does an action on the base page.
    Is there a way to embed the HTML code into a jsff page dynamically?
    Any pointers to this are appreciated.
    I am using Jdev-11.1.1.4.0 (Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923).
    Thanks in Advance!
    -Swapna

    Hi,
    shay is right, you can create a HttpServlet which you can pass parameter as queryString and in doGet method you can get these parameter and call your proedure that gives you dynamic HTML. you can directly write the html as output using PrinterWriter.
    Where as writing html in ADF is considered as very BAD practice..
    Regards,
    Santosh.

  • Can I insert an html file as an image into an HTML page?

    The site I'm working on (www.ngospen.com) has PNGs for background art - 10 - 15 kb per image. As the site is intended for settings with low bandwidth, I'd like these background images to be as small as possible.
    When saving for the web, one of the options is Save As HTML file. When I open the file, the artwork appears the same as the PNG (no lost resolution), but it is a much smaller file size (1 - 2 KB).
    Is it possible to insert these HTML files into my HTML pages?
    Thanks!
    Ken D
    Creative Director
    Grateful Creative

    Are you meaning that you work with fireworks?
    If so the html and the images you export are flattened images (slices), you have to put those images directly into your html page.
    If you want to save the file (fireworks) as a flattened image you could also goto save as -> flattened png.
    If you save your image from fireworks just as png it contains the layer information etc. etc. from fireworks, that's why you should save them as flattened png, or just export the slices.
    http://www.dreamweaverfan.nl

  • Embedding images into servlets

    I have a problem with showing two png files (or jpg files) in the same servlet. I probably thought that I cannot.
    So I thought I will do the following: Load a html file as output to the user and include references to two servlets, each displaying one png file. Do I have to use .shtml file to do that? And how do I send the HTTPRequestInfo I get from my original servlet to these 2 servlets?
    thanks
    Mahesh :)

    How do I use the img tag?? I was reading my .png file and creating a ByteArray of data (pixel info) and output that through ServletOutputstream. I am using response.setContentType("image/png"). If I did this with 2 image files, only the first one wud show up.
    please advise.
    thanks
    mahesh

  • How to insert embedded image into TextArea htmlText (and add IOErrorEvent.IO_ERROR listener).

    I unsuccessfully tried to find way to insert embedded image into TextArea via <img> tag. Can you point me out how to do this?
    Also, please, tell me how to handle IOErrorEvent from TextArea because adding IOErrorEvent.IO_ERROR listener to TextArea doesn't cause any effect when image url of img tag has not been found.
    Thanks

    i 've successfully inserted the image into the database... here is my code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    FileInputStream fs = new FileInputStream(file);
    byte blob[]=new byte[(byte)file.length()];
    fs.read(blob);
    ps.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    ps.setBytes(2, blob);
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    }

  • HTML of image into JEditorPane

    I was wondering is it possible put HTML text into JEditorPane which contains image so that image can be viewed into JEditorPane.
    This is my code:
    JEditorPane jep = new JEditorPane();
              jep.setContentType("text/html");
              jep.setText("<html><img src=\"SomeImage.bmp\"/></html>");
              jep.setEditable(false);Did I write wrong HTML code into setText() method?
    How to put image with HTML code into JEditorPane?

    Works for me -- maybe you are having path problems:
    import java.io.*;
    import javax.swing.*;
    public class Test {
    public static void main(String[] args) throws
    IOException {
    String text = "<html><body><img
    src=\"http://today.java.net/jag/bio/JagHeadshot.jpg\"
    </img></body></html>";
    JEditorPane editorpane = new
    JEditorPane("text/html", text);
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(new
    JScrollPane(editorpane));
    f.setSize(800,600);
    f.setVisible(true);
    }Also: why the requirement to use JEditorPane? There
    are simplier ways to display an image!Your String text variable uses as image source URL link. I use local file.
    Well, it's not strict requirement for me to use JEditorPane for displaying image. In fact, you could tell me some simpler ways?

  • Button push image into HTML div

    i have a flash in a HTML, and a button in flash. I want to
    use the flash button to push image into the div of the HTML
    How to do that please?

    Could be a memory issue. Try closing Dreamweaver and re-start your computer.
    Nancy O.

  • Embeding image into XML document

    Hi,
    I am in need to embed image into XML file so that when somebody else uses the XML file, the image is still there. Is there any way to do this? Is it possible? Please give me some suggestions if you know about.
    Thanks a lot.

    well, the blowup in size from 3MB to 5MB is expected when you do the text encoding, cause you are taking binary data and converting it to a small range of characters. there are alternate algorithms which result in less of a blowup than base64 (like ascii85), see:
    http://en.wikipedia.org/wiki/Category:Binary-to-text_encoding_formats
    most image files use some sort of compression algorithm, which is why your file is much smaller than the image byte[]. you could just stick the file byte[] in the xml, but you might need to add additional attributes to indicate the image encoding (e.g. "gif" or "jpg").
    but, basically, you aren't doing anything "wrong".
    Edited by: jtahlborn on Feb 26, 2008 2:31 PM

  • Insert HTML Page into XML CDATA Tag

    Hi Guy
    I have a very big problem.
    I create a little web site and I use XSL + XML to produce output.Now I
    want to add a part of html page into xml tag to use a custom page section.
    But i find a problme,
    see the example :
    I use this xml :
    <resources>
    <html><![CDATA[<B>Hello World</B>]]></html>
    </resources>
    trasform xml with xsl page
    and my output into html browser is (&lt);B(&gt);Hello World(&lt);/B(&gt);(please remove the bracket( ) while reading the text to understand my problem)
    my BOLD html tag is not parse by browser because xslt parser trasform
    my special tag into other tag.
    I want output like this:
    <b>Hello World</b>
    But it's coming like (&lt);B(&gt);Hello World(&lt);/B(&gt); (please remove the bracket( ) while reading the text to understand my problem)
    Can you help me ?
    this is my trasformation function :
    private Transformer getXSLTransformer (xslFile) throws
    XSLTransformerConfigurationException {
    try {
    Transformer transformer = null;
    tFactory = TransformerFactory.newInstance();
    transformer = tFactory.newTransformer(new
    StreamSource(xslFile)); // load xslFile from disk
    } catch (TransformerConfigurationException tce) {
    throw new XSLTransformerConfigurationException(tce.getMessage());
    return transformer;
    public String myTrasform(String xml,String xslFile) throws Exception {
    StringWriter outputString = new StringWriter(512);
    Transformer transformer = getXSLTransformer (xslFile);
    transformer.transform(new StreamSource(new StringReader(xml)), new
    StreamResult(outputString));
    return outputString.toString();
    Thank's in advance.
    kuruvi
    Edited by: Mc_Kuruvi on Jun 14, 2009 3:47 AM

    Read:
    Oracle® XML DB
    Developer's Guide
    10g Release 1 (10.1)
    Part No. B10790-01
    December 2003
    1. "Do I use sqlloader and what datatype?"
    Use XMLType
    2. "I have embedded graphics so do the images get stored separately or does the entire page get stored as a BLOB datatype?"
    Page 827:
    The Oracle XML DB native datatype XMLType helps store and manipulate XML. Multiple storage options (Character Large Object (CLOB) or structured XML) are available with XMLType, and administrators can choose a storage that meets their requirements. CLOB storage is an un-decomposed storage that is like an image of the original XML.

Maybe you are looking for