#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Arrow How to encode a image in XML file with help of XSLT file


    I want to send a image (.JPG) through

    XML file.How can I encode image data in

    XML file with help of XSLT file so that

    user can see the image in Outlook. Image

    is not a sharad folder location it is my

    personal folder but user should able to

    see image.

    I have

    worked out and I got three ways to solve

    a problem.
    1. CDATA-
    2. BASE64
    3. just creating a URL reference to the

    image in the XML

    I worked on CDATA and BASE64 but image

    is not coming on user Outlook. So please

    help me how to get image. How to write

    code in XML or XSLT so that I can get

    image and also say that is it possible

    ???
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    42
    Rep Power
    3
    0 down vote


    If I understand your question correctly, you want to send an image in an email. If this is the case, then, AFAIK, you have two options:

    *

    send the image as an attachment to the email: in this case you may want to look at MIME
    *

    another option is sending an HTML email, in which the body of your email is essentially an HTML snipped: in this case you can put in the HTML a link (URL) to your image

    In both cases I don't see how you can do this with XML/XSLT. Maybe you have some XML containing some data that you want to send by email, including the link to an image. If this is the case, then you can use XSLT to transform your input XML into (X)HTML and then use HTML e-mail.

IMN logo majestic logo threadwatch logo seochat tools logo