Html content to image saver

Hi,
how to convert html content to image(using image saver) help of BLS Action Block
Thanks
Ramesh

Ramesh,
I'm not sure your question is very clear. Why are you trying to convert HTML to an image?
I can assume that your experience with xMII is very limited....?
Some recommedations are as follows:
1) Take the xMII training...it's very helpful!
2) Read the xMII Help guide...it comes packaged with the xMII install and can be accessed from the xMII Portal page on the top right corner of the page.
3) Reference the xMII Wiki for additional info:  <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/xmii/main&">xmii WIKI...Click Here!</a>
And as always the best way to see how something works is to TRY it out. Read the help, then post in this community and explain what you have done and tried so that we can help out with what else you can try.
Questions which ask us to do your work are not very productive for you, or the community as a whole.

Similar Messages

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • HTML content with images and links blocked

    Hello,
    I very much need some help here because my company needs to send out newsletters to our clients in HTML format soon and so far the email with HTML content is being blocked as spam while text content works fine. Specifically, whenever I add a link or an image in HTML content, the email doesn't go through. I tried sending in multipart format but it is also not sending HTML with images and links. Here is my attempt:
                                    props.setProperty("mail.transport.protocol", "smtp");
                                     props.setProperty("mail.host", "mail.server.com");
                                     props.setProperty("mail.user", "joeuser");
                                     Session mailSession = Session.getDefaultInstance(props, null);
                                     mailSession.setDebug(true);
                                     Transport transport = mailSession.getTransport();
                                     MimeMultipart mp = new MimeMultipart("alternative");
                                     MimeBodyPart htmlPart = new MimeBodyPart();
                                     MimeBodyPart textPart = new MimeBodyPart();
                                     textPart.setText("Just to make it multipart");
                                     htmlPart.setHeader("MIME-Version", "1.0");
                                     htmlPart.setHeader("Content-Type", htmlPart.getContentType());
                                     htmlPart.setContent(strHtmlMessage, "text/html");
                                     mp.addBodyPart(textPart);
                                     mp.addBodyPart(htmlPart);
                                     MimeMessage message = new MimeMessage(mailSession);
                                     message.setHeader("MIME-Version", "1.0");
                                     message.setHeader("Content-Type", mp.getContentType());
                                     message.setHeader("X-Mailer", "Recommend-It Mailer V2.03c02");
                                     message.setContent(mp);
                                     message.setSubject(strSubject);
                                     message.setFrom(new InternetAddress("[email protected]"));
                                     message.addRecipient(Message.RecipientType.TO,
                                             new InternetAddress("[email protected]"));
                                             transport.connect();
                                             transport.sendMessage(message,
                                             message.getRecipients(Message.RecipientType.TO));
                                     transport.close();This code is one of my numerous attempts to make HTML send images and links. Please, let me know if there is a workaround way to make JavaMail send HTML with links and images in the message body. Your help will be greatly appreciated.

    The JavaMail FAQ has information on creating HTML messages, including
    messages with both plain text and HTML. Did you find it?
    BTW, your code has many unnecessary statements, such as setting
    the Mime-Version header, which JavaMail will do for you, and setting
    the Content-Type header, which JavaMail does as a side-effect of the
    setContent or setText calls.
    Other than that, it looks like your code should be correctly creating a
    multipart/alternative message. If the recipient is still rejecting it you
    need to figure out what it is about the message that makes the recipient
    think it's spam. Can you send a similar message using another mailer?
    Can you send the message to a different recipient?

  • Setting html content with setContent() does never show images

    I've an application set sets dynamically generated html-content in a webview node by using the webengine.setContent() method. This generated html content uses image-tags.
    Here's the problem: the image is not displayed. I tried all variations (absolute url like "http://localhost/c:/test.png" or "file://c:/test.png", relative urls like "test.png" with png in jar-file).
    Anyone out there who has a workaround for me? I appreciate any comment.

    one non-working apple <img src="apple.png"> You loaded the page content with loadcontent, then inside the page content provided a relative url. This is likely an error.
    The question is, what is this url relative to?
    The answer is either likely undefined as no protocol was used to load the page content and so it can't be determined how to load the relative url resource.
    and two non-working peaches <img src="http://localhost/c:/peaches.png">
    You attempted to load content using the http protocol server on the localhost, but you have no such server on the host, so this cannot work.
    and a working remote image url <img src="http://docs.oracle.com/javafx/javafx/images/javafx-documentation.png">
    This works because you fully specified how to load the content by providing the protocol and valid resource reference.
    OK, so the question remains how do you images from the local drive?
    There are three options for this in the following code.
    package org.jewelsea.examples.webviewlocal;
    import javafx.application.Application;
    import javafx.beans.value.*;
    import javafx.scene.Scene;
    import javafx.scene.layout.FlowPane;
    import javafx.scene.web.WebView;
    import javafx.stage.Stage;
    /** Example of a webview loading resources from the file system. */
    public class WebViewLocal extends Application {
      public static void main(String[] args) throws Exception {
    //    URL.setURLStreamHandlerFactory(new HandlerFactory());
        launch(args);
      public void start(final Stage stage) throws Exception {
        final FlowPane layout = new FlowPane();
        WebView webView = new WebView();
        webView.getEngine().load("file:///C:\\dev\\gettingstarted\\timeforgotten.html");
    //    webView.getEngine().load("jar:file:///C:\\dev\\javafx\\JavaFXidea\\out\\artifacts\\JavaFXidea_jar\\JavaFXidea.jar!/org/jewelsea/examples/webviewlocal/timeforgotten.html");
    //    webView.getEngine().load("resource:///org/jewelsea/examples/webviewlocal/timeforgotten.html");
        webView.getEngine().getLoadWorker().exceptionProperty().addListener(new ChangeListener<Throwable>() {
          @Override public void changed(ObservableValue<? extends Throwable> observableValue, Throwable oldThrowable, Throwable newThrowable) {
            System.out.println("Load exception: " + newThrowable);
        // layout the scene.
        layout.getChildren().addAll(webView);
        Scene scene = new Scene(layout, 1000, 600);
        webView.prefWidthProperty().bind(scene.widthProperty());
        webView.prefHeightProperty().bind(scene.heightProperty());
        stage.setScene(scene);
        stage.show();
    }which loads the following html file:
    <html>
    <head>
      <style type="text/css">p { color: sienna; font-size: 20px; text-align: center; }</style>
    </head>
    <body bgcolor="cornsilk">
    <p><em>
        <br/>
        On either side the river lie,<br/>
        Long fields of barley and of rye,<br/>
        And through the fields a road runs by,<br/>
        To many towered Camelot.
    </em></p>
    <p><img src="camelot.jpg"/></p>
    </body>
    </html>If you want to test this example the camelot.jpg image is downloadable from http://www.timelessmyths.com/arthurian/gallery/camelot.jpg.
    Option 1: The file:// protocol for lookup from the filesystem.
    This is the most straight-forward as it is just based on standard html layout in the filesystem - just place your html and it's relative referenced images somewhere in your filesystem in locations relative to each other - if your browser loads it properly, then your webengine will to if you give it the right file:// path.
    In the case of file:///C:\\dev\\gettingstarted\\timeforgotten.html, timeforgotten.html is placed in c:\dev\gettingstarted and camelot.jpg image is placed in the same directory.
    Option 2: The jar:file:// protocol for lookup from a jar hosted on the filesystem.
    This makes use of the http://docs.oracle.com/javase/7/docs/api/java/net/JarURLConnection.html to find your resources.
    If your application resources are packaged in a jar file (could be the same jar file as your main application class) then you can reference the jar file through the file protocol, then pick out the resources packaged in the jar file via their relative paths.
    Option 3: The resource:// protocol for lookup based on the classpath.
    This type of resource lookup is the one most Java programmers are familiar with - a classloader is used to load a resource. The pattern is widely used in web application frameworks on the server. But usually the means to do this is via a classloader.getResource() call, not via a URL.
    Java does not, by default, have a URL protocol handler for looking up resources on the classpath, so if you want to do this, it is necessary to create your own protocol and install it.
    The installation function is the commented out line: // URL.setURLStreamHandlerFactory(new HandlerFactory());
    It is a system wide call for the VM and should be called (just once) before any URL Connections are established.
    To get this to work I used a resource handler from http://www.arakhne.org/arakhneVmutils/index.html which included the following classes:
      java.org.arakhne.vmutil.resource.Handler
      java.org.arakhne.vmutil.resource.HandlerFactory
      java.org.arakhne.vmutil.resource.URLConnection
      java.org.arakhne.vmutil.ClassLoaderFinder
      java.org.arakhne.vmutil.Resources
      java.org.arakhne.vmutil.ResourceNotFoundException
      java.org.arakhne.vmutil.URISchemeType
      java.org.arakhne.vmutil.URLHandlerUtilDetails on how all this works are in http://java.sun.com/developer/onlineTraining/protocolhandlers/ which defines "A New Era for Java Protocol Handlers" by defining a URL handler extension mechanism which is hardly ever used.
    As a final note to my way overly long forum post, when the WebEngine doesn't process the urls sometimes you can get info on what went wrong via the monitoring the loadWorker's exception property, but sometimes I was able to get more complete stack traces by trying to open a connection on a URL to see if I had got the URL correct - for example:
        URL url = new URL("jar:file:///C:\\dev\\javafx\\JavaFXidea\\out\\artifacts\\JavaFXidea_jar!/org/jewelsea/examples/webviewlocal/timeforgotten.html");
        url.openConnection();Anyway, just using the file:// protocol in webEngine.load() will probably accomplish what you need.
    Note that if it is a webstart or browser embedded app, then you'll need to sign it if you want to access the local file system.

  • How to save HTML file with images present in the server to local machine

    Hi all
    In my application i have a option for the user to save HTML files with images present in the server. The HTML file is getting saved but the images are not being saved.
    The code i am using is below :-
    l
                        File fname = new File(filePath);
                        if(!fname.exists())                return;
                        FileInputStream istr = null;
                        OutputStream ostr = null;
                        response.setContentType("application/"+format);
                        response.setHeader("Content-Disposition", "attachment; filename=\"" + fname.getName() + "\";");
                        try { 
                             istr = new FileInputStream(fname);
                             ostr = response.getOutputStream();
                             int curByte=-1;
                             while( (curByte=istr.read()) !=-1)
                                  ostr.write(curByte);
                             ostr.flush();
    Can anyone suggest what i need to do
    regards

    The client should probably parse the html that comes down, and look for <img> links, and request those of the server as well.

  • Post BLOB image in an html content

    I have a HTML content which will go as a body of the email to be sent to various users.
    Now in the email, somewhere there is a tag
    <img src="[IMG]"/>
    We need to replace the [IMG] with the image link store in the database column, so that the email receiver can see the image there.
    Any help
    Thanks
    Deb

    Hi Tony
    I am using something like this
    <img src="WRT.DISPLAY_TEMPLATE_IMAGE?inid=189" width="100%" border="0" >
    where DISPLAY_TEMPLATE_IMAGE is a procedure with the following code
    create or replace
    PROCEDURE display_template_image (inid NUMBER)
    AS
    vmime VARCHAR2 (48);
    vlength NUMBER;
    vfilename VARCHAR2 (2000);
    vblob BLOB;
    BEGIN
    SELECT ctl_image_mime_type
    , ctl_image
    , ctl_image_filename
    , DBMS_LOB.getlength (ctl_image)
    INTO vmime
    , vblob
    , vfilename
    , vlength
    FROM contact_templates
    WHERE ctl_id = inid;
    OWA_UTIL.mime_header (NVL (vmime, 'application/octet'), FALSE);
    HTP.p ('Content-length: ' || vlength);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (vblob);
    END;
    The above procedure works fine when I use it in a IR report query. but not in a HTML script.
    Thanks
    Debraj

  • DPS html content and iPad retina display

    I have embedded an html audio player into InDesign Cs6 using folio overlays / web content.
    I also have customized the audio controllers (play/pause/stop/progress bar).
    Do I have to make the png's twice (for iPad without retina + with retina)?
    And where do I have to save this images?
    Best regards,
    Peter

    PDF is the preferred format of the folio file, because it handles scaling well enough that you shouldn't need two seperate renditions for iPad+Retina.
    Not sure what images you're referring to, can you clarify?
    If they are part of the HTML content, then they need to either: within the folder where the .html file is, and referenced accordingly, or if you're using a HTMLResources.zip to handle your HTML content, then they need to go there.

  • SSRS 2008 R2 report does not print the page header for a html content displaying on multiple pages

    Hi
    I need to display the html content from the database. The html content are quite long and can have content of 3-5 pages. Issue I  am facing is f the record has html content of 3-5 pages, then it does not print the page header (which is a separate tablix) on
    second page onwards.
    Nikesh Shah
    Nikesh Shah

    Hi Nikesh,
    According to your description, I’m not sure the meaning of Page header in your scenario. In Reporting Services, a page header that run along the top of each page, respectively. Headers can contain static text, images, lines, rectangles, borders, background
    color, background images, and expressions. But we couldn’t add tablix in the page header.
    If you are saying report header, a report header consists of the report items that are placed at the top of the report body on the report design surface. They appear only once as the first content in the report. So it cannot repeat in other pages.
    If you are saying tablix header, freezing column headers are different in table and matrix. For more details, please refer to the following thread:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8ddc1af-1bdf-4e72-8aab-0353c7cc848a/ssrs-report-freezing-row-and-column-while-scrolling-issue?forum=sqlreportingservices
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Mail having HTML attachment with images

    I am having a problem that when I send a mail which has an attachment report in html format that contains images, the resulting mail does not show the name of HTML attachment filename, even though it contains it
    Message-ID: <1236342.1033132049637.JavaMail.insoft@ins-2k>
    Date: Fri, 27 Sep 2002 14:06:49 +0100 (BST)
    From: [email protected]
    To: [email protected]
    Subject: This is your subject
    Mime-Version: 1.0
    Content-Type: multipart/mixed; boundary="----=_Part_0_2584319.1033132009259"
    X-Mailer: ins
    ------=_Part_0_2584319.1033132009259
    Content-Type: text/html
    Content-Transfer-Encoding: 7bit
    Content-Disposition: inline
    ------=_Part_0_2584319.1033132009259
    Content-Type: multipart/related; name="Report Containing Chart.html";
         boundary="----=_Part_1_2352159.1033132048786"
    Content-Description: this is my related part attachment
    Content-Disposition: attachment; filename="Report Containing Chart.html"
    ------=_Part_1_2352159.1033132048786
    Content-Type: text/html; name="Report Containing Chart.html"
    Content-Transfer-Encoding: quoted-printable
    Content-ID: ttt
    Content-Disposition: attachment; filename="Report Containing Chart.html"
    ------=_Part_1_2352159.1033132048786
    Content-Type: image/png
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment
    Content-ID: attach_1
    Content-Location: cid:attach_1
    Content-Length: 1750
    // thats how it build up
    MimeBodyPart relParent = new MimeBodyPart();
       MimeMultipart relatedBodypart = new MimeMultipart("related");
       MimeBodyPart mainBodypart = new MimeBodyPart();
       mainBodypart.setContent("my html report in text form", "text/html");
       relatedBodypart.addBodyPart(mainBodypart);
       MimeBodyPart inBodyPart = new MimeBodyPart();
       inBodyPart.setDataHandler(new DataHandler(bds));
       relatedBodypart.addBodyPart(inBodyPart);
    relParent.setContent(relatedBodypart);
    relParent.setFileName(relAtt.getName());
    relParent.setDisposition(BodyPart.ATTACHMENT);
    // am i missing something here

    You are getting your file attached correctly, but you still need to reference it within your HTML text so it will be displayed. You can do this with the cid (content-id) tag. Something like this should work:
    <img src="cid:attach_1">
    "attach_1" can be any name you specify when you attach the file to the message.
    Hope this helps.
    --Rick                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Writing Html Content into PDF using JSP

    Dear All,
    I am using JSP to generate Employee payslip dynamically. Presently i am diplaying payslip as on-screen display.
    Here i want to give option "Save as PDF". I am able to create PDF file using IText Libraries. i want to integrate HTML code into the PDF file.
    Writing HTML Content (using HTML Tags) into PDF.

    Well it is a difficult ask and i believe we are trying to re-invent the wheel
    Just to make my life simple i could have choosen either sample API given below to serve my cause
    1).[http://xmlgraphics.apache.org/fop/] (Apache FOP one can simply write an XSL template of their and then substitute the values from respective DTO's by using XSL - XML transformations and can generate content in different formats which includes PDF aswell)
    2).[http://jasperforge.org/plugins/project/project_home.php?group_id=102] (Just design a simple report template using iReport and create a jrxml files and write a small code snipett such that you can pass few details at the runtime and can export the report in different formats which includes PDF aswell)
    3).[http://www.object-refinery.com/jfreereport/] (Is much similar to what jasper offers in order to compile these you can either use pentaho product IDE or BEA/Oracle Actuate report tools)
    You can simply try searching for different examples for getting more help on using the respective API's
    Hope that helps :)
    REGARDS,
    RaHuL

  • How can servlet return the output as html content with drawing picture?

    Does anybody know how can a servlet return the output as html content with drawing picture?
    The drawing picture is drawn at runtime by the servlet.

    Thanks, BalusC.
    But I am not sure if I understand your reply fully.
    From my understanding, you are telling me to first generate a html from a servlet with the image <IMG> tag pointing to a servlet which will be responsible to generate an image?
    For example, <IMG SRC="http://myserver/servlet/testservlet">
    Could you confirm this?

  • Problems with html content in box

    Hi! I have a problem with html content. For example photoswipe. If I import the folder with the index.html of photoswipe as an article all works fine. If I link it trough the folio overlay creator/webcontent) into a box in indesign dps, it stays empty. Seems like it doesnt find the images/paths??
    Klaus

    This sounds familiar. PhotoSwipe doesn't seem to like working in a web content overlay unless the JavaScript and other source files are uploaded within HTMLResources. This means editing your local HTML file so that paths to the JavaScript, images and CSS files begin by pointing to HTMLResources virtual folder (../../../HTMLResources/) before their subfolder and filenames. It's worth a try.

  • Html content in lightbox is visible only on the first click

    I have added html content into a lightbox.
    When I click the trigger the first time, content is visible.
    If I exit (by clicking outside) the lightbox and click the trigger a second time.
    The embedded HTML is gone.
    See attached images.
    Url: Live page

    What steps did you take in order to add the HTML content to the lightbox? I'm trying to replicate the problem and I cannot figure it out. Did you do it within Muse?

  • HTML  Content in an E-mail message

    Hello!
    I wanted to know as to how html content could be sent as part of an email message..Someone please help me with this because this is very crucial.Thank u
    Regards,
    Chaitra

    I used msg.setContent(message,"text/html") and it works fine as long as the total no. of characters in the message is less than 1024. As soon as the character size goes over 1024, I get this message in the mail instead of the HTML mail -
    "This message uses a character set that is not supported by the Internet Service. To view the original message content, open the attached message. If the text doesn't display correctly, save the attachment to disk, and then open it using a viewer that can display the original character set."

  • Getting the html content before browser displays it

    Hi,
    I have a nagging problem which i am trying hard to solve.
    I have a jsp file which gets hundreds of rows from database. I want to capture the html content before the browser displays that. How can I achieve it. ?
    Please tell us the solution as soon as possible. we have stopped the work.
    Thanks & Regards,
    A S N Murthy
    [email protected]
    [email protected]

    Hi !
    continuing with my previous mail...
    Is it okay with you if you use save the Data to be rendered in an XML ? (if you just need all the data).
    You've written you will have "hundreds of rows from database".
    In case you think of saving the data in an XML format, you can have all that data in a structured manner on the server side. And later you could use the XML file in any way you want. i.e. convert it into an html using xalan, etc. or use the XML file to access the data instead of a DB transaction all over again...
    I guess this might be a better approach than saving the HTML that will be generated by the JSP.
    Anyway, it depends on your requirement.
    regards,
    Rahul C Tiwary

Maybe you are looking for

  • Voice memos deleted after restore

    Recently I restored my IPhone from iCloud and all my Voice Memos are Greyed after iCloud Restore everything is restored except my voice memos, I can see the list but cant play them and I do not have itunes backup. Its really disappointing. What can I

  • Report with Title and sub-title

    I am looking for a way to create a report with a title and a sub-title inside the same border. I need a title in the title bar then some text under the title bar that describes the report and then the column headings followed by the data. So far the

  • What does the scriptcollector do and how does it related to jsf lifecycle?

    hi, i want to know what does the scriptcollector do and how does it related to jsf lifecycle? and also in the scriptcollector if i call this, preRender=#{myBean.onPageLoadBegin} postRender=#{myBean.onPageLoadEnd} how my page will react?

  • Where can I find the support for CC Switzerland? Has anyone a phone number where I can talk to real people?

    I'm looking now for 30 minutes without finding a phone number to call. By pressing the SUPPORT button and then with a click on CC > Contact > Decisions to buy > Need further Help? Please contact us > a window opens saying "Ask the community". Well, h

  • Installing Leopard on a Mac Pro

    As I am a bit of a scaredy cat, I have put off installing Leopard on my Mac Pro. This is a work machine and although I have another G5 that is perfectly usable if this machine went belly up I have still not bit the bullet so to speak... until now. I'