[SOLVED] Ktorrent and magnet links

I use KDE and try to use the "native" apps for integration and so.... but ktorrent is giving me a hard time when trying to download magnet links (more and more common this days)
I click on a magnet link, ktorrent grabs it but never reaches the point where he adds the download itself.... like if it got stuck...
Anyone else has the same problem as me?
Thanks!!
Last edited by Xi0N (2012-08-07 21:48:04)

Mr. Alex wrote:I also face this issue and figured out that you have to configure the protocol settings correctly. Like this. If you turn off DHT - you most likely won't be able to use magnet links at all.
I have those options activated (plus some other ones)......... i didnt have the patience to wait 10 minutes and see if it finally ends up working... will try though since it has allways been pretty slow for getting the magnet links.....

Similar Messages

  • Luakit and magnet links - "Unable to load page"

    Hi,
    I've got luakit with working magnet links handling, but there's one annoying issue. Everytime I open magnet link luakit opens transmission and goes to  "Unable to load page" page. Is there any chance to disable this behaviour? It also spawns new tab to execute transmission. It would be nice to make it "more in the background".
    webview.init_funcs.magnet_hook = function (view, w)
    view:add_signal("navigation-request", function (v, uri)
    if string.match(uri, "^magnet:") then
    local cmd = string.format("%s %q", "transmission-gtk", uri)
    luakit.spawn(cmd)
    return false
    end
    end)
    end
    Thanks in advance.

    Also try changing your code to the following and it'll open magnet links and mailto links using xdg-open. * Note I haven't really tested this, as I have been modifying the webview.lua file.
    webview.init_funcs.navigation_request_decision = function (view, w)
    view:add_signal("navigation-request", function (v, uri)
    if string.match(string.lower(uri), "^magnet:") then
    luakit.spawn(string.format("%s %q", "xdg-open", uri))
    return false
    elseif string.match(string.lower(uri), "^mailto:") then
    luakit.spawn(string.format("%s %q", "xdg-open", uri))
    return false
    end
    end)
    end
    Edit: Any queries about luakit should probably be directed to its main thread in Community Contributions. The project isn't particularly active but occasionally the devs check there.
    Last edited by zoqaeski (2014-06-03 17:00:44)

  • [SOLVED] Ktorrent and utorrent [SOLVED] Usiing wine and utorrent

    Hi
    i have dual boot between wxp and arch and i want to use utorrent and ktorrent
    is there any way to download/resume the same torrents between both programs without need to make a force reecheck when i start up the system??
    thanks
    otherway, with utorrent under wine its posible??
    thanks
    Last edited by pelo (2008-06-26 06:24:26)

    lucke wrote:
    Are you using the same program under both systems?
    You might have to symlink some data/config directories (the one with program's data about downloaded files).
    thanks, solved the problem.
    the user profiles dir in wine is under windows dir instead of "documents and setings"
    thanks luke

  • I associate Magnet links to my Vuze program and click "remember my choice" but it does not keep it assoctated anymore. What happened

    Every time I click on a magnet link is asks for a program association i set Vuze and click remember. It used to keep the setting but it does not anymore and I have to go through it every time I click on a link. What happened? I think it was it the last update when this started happening but I am not sure. Is there anyway I can manually input the choice so it stays there?

    Reset your preferences
    Hold down CTRL + SHIFT + ALT keys then start photoshop. Window pops up choose yes.

  • [SOLVED] Inquiry about the {{Note | }} environment and url links

    Recently I've added some notes to the wiki and tend to like to link to sources where possible. I've tried to do this with forum posts, but because of the url syntax:
    https://bbs.archlinux.org/viewtopic.php?id=#####
    the note environment doesn't like it and results in this:
    {{{1}}}
    Specifically, I've tracked it down to the equals sign ("="). Could anyone chime in on:
    - the preferred method of linking to an external url inside of a note (or if that is discouraged)
    - if I've overlooked some syntax that would allow this for the url format above (like putting it in quotations or something like that?)
    - if it's possible to change why the "=" in a url will prevent such linking
    It's a bummer... I love linking to the forums from the wiki because a lot of the answers originate here during problem solving. I don't have to use the note environment, but I find lately that some of the main article will be quasi correct but potentially misunderstood and so I've create a note and linked here. Since I can't directly link, I've been adding the forum post urls in the "Additional Resources" section at the bottom of articles and just linking to that via the [[wikiURL#Additioanal_Resources]] syntax.
    To be able to directly input a url would simply things, I think.
    Last edited by jwhendy (2011-03-11 01:12:55)

    See Help:Template
    Note: If you use the equal sign ( = ) inside a template with numbered parameters, MediaWiki will break the template's output. You need to enclose the equal sign (or the entire block of text) in <nowiki> tags like so:
    {{Codeline|<nowiki>variable = value</nowiki>}}
    Alternatively, treat the parameter number as a named parameter, as in:
    {{Codeline|1=variable = value}}
    This is a technical limitation that you should keep in mind while using templates.

  • I am trying to get Firefox to open Vuze when I click on a magnet link, I get the following message: Firefox doesn't know how to open this address, because the protocol (magnet) isn't associated with any programme. tell me the solution

    when i try to open torrent using magnet, I get the following message. Firefox doesn't know how to open this address, because the protocol (magnet) isn't association to any programme.

    '''I had this problem and just re-installed Firefox. Problem solved. In my case I believe it was due to installing FlashGet. Though I uninstalled FlashGet, it had pre-empted the Magnet links / protocol. I hope this helps you with your instance. Happily I had the installer for my version of Firefox (7.0.1) saved and used that but you might need to search for your current version or install a later version'''

  • Solve this and you're a genious: Port problems with SRW2016

    Equipment:
    One SRW2016 fresh out of the box and set to factory default settings
    One Dell Laptop running Windows XP
    One custom network appliance running a full TCP/IP stack but limited to 10M half duplex.
    Setup:
    The laptop has a static IP address. The network appliance has a static IP address. The switch has the factory default static IP address.  All three devices are on the same subnet.
    The laptop is plugged into port 1 on the switch, and the network appliance is plugged into various ports as described below.  The laptop is set to continuously ping the network appliance using the ping –t command.
    Problem:
    When the network appliance is plugged into switch port 2 I am unable to ping the device from the laptop.  When I plug it into port 3 I get the same result.  In fact I am unable to ping the network appliance on any of the switch ports EXCEPT for ports 7, 8, 15, and 16.  As soon as I plug the network appliance into any one of those four ports, the pings are replied to. 
    My question is - why am I unable to communicate with the network appliance on any ports other then ports 7, 8, 15, and 16? What makes these four ports different then the others?
    Other Notes:
    I have a second Linksys SRW2016 and notice the exact same behavior.
    I’ve also tried a Linksys SLM2008 8-Port switch and experience NO communication problems on any ports.
    I’ve tried a hub and it works 100%
    I notice that after trying to ping the network appliance on a non-working port, I can see the device properly listed in the ARP table on both the switch AND laptop. So I am unable to ping the device yet it somehow makes it into the ARP table.
    Any help with this issue would be greatly appreciated.
    Best regards,
    Rob

    Hi,
    Thanks for explanation that not all ports are the same.
    I've just had a similar issue with a Siemens C470IP ip phone. It worked fine with my Dlink 8-port DES3010F switch which I've just replaced with the SRW2016, and also when plugged into my Draytek 2820n ADSL router's LAN ports. I'm a bit disappointed that I happened to plug the device into port 3 and suddenly my monitoring showed that things were not working properly. I checked cables and then remembered that auto-negotiation sometimes can cause problems.
    On the SRW2016 if I leave the port with auto-negotiate on I see:
                                  Flow  
    Port   Enable   Link  Spd/Dpx Ctrl  
    g3      ENABLE   UP    10H     Off
    Yet inspite this pinging the device does not work properly. That is I get from ping:
    64 bytes from 192.168.0.36: icmp_seq=431 ttl=128 time=7.357 ms
    Request timeout for icmp_seq 432
    64 bytes from 192.168.0.36: icmp_seq=433 ttl=128 time=8.956 ms
    Request timeout for icmp_seq 434
    64 bytes from 192.168.0.36: icmp_seq=435 ttl=128 time=5.920 ms
    Request timeout for icmp_seq 436
    Request timeout for icmp_seq 437
    Request timeout for icmp_seq 438
    Request timeout for icmp_seq 439
    Request timeout for icmp_seq 440
    64 bytes from 192.168.0.36: icmp_seq=441 ttl=128 time=9.242 ms
    Request timeout for icmp_seq 442
    Request timeout for icmp_seq 443
    Request timeout for icmp_seq 444
    Request timeout for icmp_seq 445
    Doing the explicit configuration of 10Mb Half duplex as suggested does not help either. In fact it's worse as I get no responses from a ping and it does not make any difference if I enable flow control or not.
    So must be the Siemens device? Well plugging into port 16 as suggested makes all the difference:
    Auto negotiation works and the link comes up and works fine:
    That is:
                    Auto          Flow  
      Port   Enable  Neg.  Spd/Dpx Ctrl  
    g13      ENABLE   On   Auto    Off 
    g14      ENABLE   On   Auto    Off 
    g15      ENABLE   On   Auto    Off 
    g16      ENABLE   On   Auto    Off 
    and
                                    Flow  
      Port   Enable   Link  Spd/Dpx Ctrl  
      g14     ENABLE   DOWN  -----   ---
    g15     ENABLE   DOWN  -----   ---
    g16     ENABLE   UP    10H     Off
    and ping shows what I expect:
    64 bytes from 192.168.0.36: icmp_seq=353 ttl=128 time=5.918 ms
    64 bytes from 192.168.0.36: icmp_seq=354 ttl=128 time=6.675 ms
    64 bytes from 192.168.0.36: icmp_seq=355 ttl=128 time=8.052 ms
    64 bytes from 192.168.0.36: icmp_seq=356 ttl=128 time=5.430 ms
    64 bytes from 192.168.0.36: icmp_seq=357 ttl=128 time=6.763 ms
    64 bytes from 192.168.0.36: icmp_seq=358 ttl=128 time=7.861 ms
    64 bytes from 192.168.0.36: icmp_seq=359 ttl=128 time=9.996 ms
    64 bytes from 192.168.0.36: icmp_seq=360 ttl=128 time=5.526 ms
    64 bytes from 192.168.0.36: icmp_seq=361 ttl=128 time=6.374 ms
    64 bytes from 192.168.0.36: icmp_seq=362 ttl=128 time=4.750 ms
    64 bytes from 192.168.0.36: icmp_seq=363 ttl=128 time=2.305 ms
    64 bytes from 192.168.0.36: icmp_seq=364 ttl=128 time=4.748 ms
    64 bytes from 192.168.0.36: icmp_seq=365 ttl=128 time=7.279 ms
    64 bytes from 192.168.0.36: icmp_seq=366 ttl=128 time=6.359 ms
    64 bytes from 192.168.0.36: icmp_seq=367 ttl=128 time=6.536 ms
    64 bytes from 192.168.0.36: icmp_seq=368 ttl=128 time=8.089 ms
    64 bytes from 192.168.0.36: icmp_seq=369 ttl=128 time=8.797 ms
    So why is this broken? Is it a firmware issue or a hardware issue?  The firmware I'm using is I believe the latest though it looks rather old:
      Boot Version:          1.0.1 (Date:  11-Jun-2006, Time:  18:43:59)
      Software Version:      1.2.2b (Date:  28-Feb-2008, Time:  16:47:37)
      Hardware Version:      00.03.00
    If this affects me it's likely to affect others and I really wanted to buy the switch to add to the number of "managed ports" I have. This current behaviour is rather disappointing and I would have hoped that perhaps a firmware upgrade would solve this, or the documentation would be clearer that some devices do not work properly (auto-negotiation seems to be rather a troublesome subject).  Is such a fix available?

  • Why, when right click on some link the options "OpenLink in New Tab" and "Open Link in New Window" are exchanged?

    Why, when right click on some link the options "OpenLink in New Tab" and "Open Link in New Window" are exchanged?

    Dear friend, the problem is that there is exchange of something very useful from users an this break them habits! I'm not interested of forced using of tools! Of course it's good that there is a tool to solve my problem, but this action make me unhappy.
    last words - this is the way of losing users.

  • Firefox crashes when I click on magnet link. HELP!

    This problem has been happening for a while. When I go to a website and click on a magnet link, firefox just crashes. It just comes up saying firefox has stopped responding and has to close. I'm trying to open the magnet link via utorrent. It says that you should update your download application (uTorrent) to fix crashes. I did and it still does it.

    Yep. Just downloaded firefox 11, still does the same thing. Updated utorrent to newest version, still doing it.

  • Play Slideshow and Subscribe links don't work in IE

    Hi, I published a site with the newest version of iWeb and the Play Slideshow and Subscribe links don't work for my friends who use IE. Also, only some of the pictures will open when clicked. Many of them do nothing when clicked.
    Here's an example:
    http://web.mac.com/jconstant/Scotland/Golfing.html
    The site works with Safari and Firefox (both Mac and PC) but people with several different versions of IE experience the same problem.
    Any ideas on how this can be fixed?

    Thanks for your reply. The problem is the whole page is one image and there should be several clickable areas which point to different links.
    To solve this we have put a textbox over the clickable area, disabled the background and stroke and then right clicked on the textbox and used the hyperlink option to turn the whole box in to a hyperlink.
    We tried several free PDF convertors which couldn’t handle this combination. Then we trailed it with the full desktop version of Adobe Acrobat Pro and it worked a treat. Unfortunately the client didn’t have that software so we signed them up to the online PDF convertor from Adobe and that isn’t handling it.
    Here's the sample document: Dropbox - sample-link.docx we have been doing the tests with.

  • PS-Medias and dynamic links lost.

    Hey everybody,
    I'm actually working on a mid-complex project with several afx-comps (using dynamic link) and a bunch of Photoshop-graphics. Everything worked fine until this morning. When I started my machine, no graphical media or afx-comps load up. I tried auto-save-files and older versions aswell. Still the same.
    I'm working on a MacPro late 2009, 12GB RAM, Bootdevice: Intel SSD, Projectdatas: internal software raid1, Videodatas: internal software raid0
    (backup on nas via timemachine). No disc errors or hardware failures found so far.
    Softwareversion Adobe CS5.0.3 Production Suite
    Footage: Canon xf305 (but this works fine!)
    Maybe you have any idea? Thanks a lot!
    Philipp
    ___EDIT:
    I manually relinked all psd-files. The last problem to be solved is the afx-link. So I will move to the afx-forum with the same question.

    tried it, but it always gives me a MethodNotFoundException, because its trying to find my class in java.lang.String for some reason...
    heres part of the code (its an altered version of the code given in the invoke tutorial):
    public String getMethodReturnValue(String methodName, String className) {
    String result = null;
    Class theModuleClass = String.class;
    Class[] parameterTypes = new Class[] {};
    Method concatMethod;
    //Object[] arguments = new Object[] {parameters};
    try {
    concatMethod = theModuleClass.getMethod(methodName, null);
    result = (String) concatMethod.invoke(createObject(className), parameterTypes);
    } catch (NoSuchMethodException e) {
    result = e.toString();
    } catch (IllegalAccessException e) {
    result = e.toString();
    } catch (InvocationTargetException e) {
    result = e.toString();
    return result;
    private Object createObject (String className) {
    Object object = null;
    try {
    Class classDefinition = Class.forName(className);
    object = classDefinition.newInstance();
    } catch (Exception e) {}
    return object;
    Thanks for any help!
    -Tom

  • Can I clone my usb2 hard drive to a firewire and keep links?

    I have a ton of video clips and music I use for editing on a 2TB USB 2 external hard drive. For small projects this has not caused problems but since I started working on longer projects it has become painfully slow.
    I am wondering if an upgrade to a firewire 800 or Thunderbolt drive will solve this, and if so will I be able to create a clone of my existing USB2 drive onto the new fatser drive and the iMac still automatically be able to find the links to the media in my projects?
    I'm not sure how it works on mac's but I assume that if I was doing this on windows and the new drive had the same drive letter as the previous eg. /:D drive it would look there on it's own for music and video.
    Is this even a worth while venture, as as it seemed to be fine on smaller projects maybe just a RAM upgrade would be enough to get it running smoothly again?
    Any advice appreciated

    danpo1 wrote:
    speaking of the drives, if I change the volume name of a new drive to match and the folders writing are in the right places it should treat it as the same drive?
    Unfortunately this likely won't work, because the hard drives have numbers etc, that distinguish between them, even if they have the same volume names.
    Cloning does this, like with Carbon Copy Cloner or Superduper, and usually in some cases the Finder or OS X gets confused with the same volume name of the clone, so it has to be changed.
    You can try it and see if it works, but I doubt it.

  • Virtual Connect Manager Status and Stacking Link Error

    I have three C7000 Enclosures / chassis running on each environment, each chassis have a redundant VC (Flex-10 Enet) bay 1-2 and ( 8Gb 24-Port FC ) Bay3-4, everything seem working but there is a Domain status and stacking link errors "One or more of a domain's subsystems are not properly operating, causing serious impact to domain functions." and "Some VC-Enet modules are not properly connected via stacking links please verify stacking cable connections"

    Sorry, but your question is far beyond the intended scope of the Global Consumer support forum.  I suggest posting this to the HP Enterprise business forum.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Why text and button links on a PDF do not work in the iPad

    I have Acrobat Pro 9.2.3 and InDesign CS5.
    I've tried creating both button and text links directly from InDesign (Window > Interactive > Hyperlinks). I then export the multi-page PDF with "Acrobat 6 and Above" selected as well as the "Hyperlinks" and "Interactive Elements" checked. When I open the PDF in my iPad, none of the text or button links work.
    Then . . .
    I tried opening the same multi-page PDF in Acrobat Pro, and manually created the link boxes (Tools > Advanced Editing > Link Tool). The iPad still can't interprete these two interactive elements.
    Any clues what I'm doing wrong?

    Try exporting as ePub - now test inside Digital Editions and if OK - drag the file into iTunes and synch to iPhone/iPad.
    It's probably a Preview issue as mentioned but exporting to ePub is good fun!
    J.

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

Maybe you are looking for

  • Error when deploying EAR file: Operation failed with error: java:/app/jdbc/

    I created application using JDeveloper 11g, and have the deploy file EAR read to deploy to oracle application server 10g, but I am encouting the error of Operation failed with error: java:/app/jdbc/jdbc/HRConnDS not found Below is the log. What did i

  • Help. photoshop not working properly

    i saw the video on how to add text into  a photo and i tried to do it on my own all to no aveil because once i leave the t icon for text and place on the photo, the hand icon appears moving my whole photo. is this a malfunction? or am i doing somethi

  • Barcode sample couldnot run in 9ias

    barcode sample couldnot run in 9ias Oraclebarcode.jar Doesn't work on webserver I have downloaded the example on how to print a barcode using the oraclebarcode.jar in 9i. It works on my local install of the reportserver(devloper9i), but when I move i

  • Filling partners in ps with a bapi

    I am using BAPI_PROJECTDEF_CREATE for creating a new project, but i need to fill the partners to, i have seen the  BAPI_PROJECT_MAINTAIN, but i can´t find any table for the partners in this bapi, can anybody tell me if it is possible to fill the part

  • When i place mouse on workset ,needs to display Detailed navigation objects

    Hi Experts, when i place mouse on workset,i would like to dispaly all detailed navigation objects in a list on workset. If any one knows about this please suggest me and provide the coding too. Thanks in advance. Regards, Kiran