How convert to jpg picture into bmp ?

Hi experts,
I am trying to convert my jpg picture into bmp. for this i write one report but showing some
TRANSFER WA_MIME1 TO DSN1.
HERE IS MY FULL CODE PLZ HELP ME.
REPORT  ZSE78_7.
DATA: blob TYPE w3mimetabtype,
       blob_size TYPE w3param-cont_len,
       blob_type TYPE w3param-cont_type  .
DATA:
     p_color_scheme      TYPE char20  ,
     p_labels_groupid    TYPE igs_label_tab,
     p_labels_category   TYPE igs_label_tab  ,
     p_data     TYPE     igs_data_tab,
     p_charttype     TYPE     char20,
     p_legend     TYPE     char20,
     l_igs_chart TYPE  REF TO cl_igs_chart ,
     l_igs_chart_engine TYPE  REF TO cl_igs_chart_engine,
     i_igs_image_converter TYPE REF TO cl_igs_image_converter,
     mime TYPE  w3mimetabtype,
     html TYPE  w3htmltabtype,
     html_line TYPE  w3html,
     l_msg_text(72) TYPE  c,
     l_url TYPE  w3url,
     l_content_length TYPE  i,
     l_content_type TYPE  w3param-cont_type,
     l_content_subtype TYPE  w3param-cont_type.
CALL FUNCTION 'GUI_UPLOAD'
   EXPORTING
     filename                      = 'e:\katoch.jpg'
    filetype                      = 'BIN'
*      HAS_FIELD_SEPARATOR           = ' '
*      HEADER_LENGTH                 = 0
*      READ_BY_LINE                  = 'X'
*      DAT_MODE                      = ' '
*      CODEPAGE                      = ' '
*      IGNORE_CERR                   = ABAP_TRUE
*      REPLACEMENT                   = '#'
*      CHECK_BOM                     = ' '
IMPORTING
    filelength                    = l_content_length
*      HEADER                        =
   TABLES
     data_tab                      = mime
EXCEPTIONS
    file_open_error               = 1
    file_read_error               = 2
    no_batch                      = 3
    gui_refuse_filetransfer       = 4
    invalid_type                  = 5
    no_authority                  = 6
    unknown_error                 = 7
    bad_data_format               = 8
    header_not_allowed            = 9
    separator_not_allowed         = 10
    header_too_long               = 11
    unknown_dp_error              = 12
    access_denied                 = 13
    dp_out_of_memory              = 14
    disk_full                     = 15
    dp_timeout                    = 16
    OTHERS                        = 17
IF sy-subrc <> 0.
     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT i_igs_image_converter .
i_igs_image_converter->input = 'image/jpeg'.
i_igs_image_converter->output = 'image/x-ms-bmp'.
i_igs_image_converter->width = '100'.
i_igs_image_converter->height = '100'.
CALL METHOD i_igs_image_converter->set_image
   EXPORTING
     blob      = mime
     blob_size = l_content_length.
CALL METHOD i_igs_image_converter->execute
   EXCEPTIONS
     communication_error = 1
     internal_error      = 2
     external_error      = 3
     OTHERS              = 4.
IF sy-subrc = 0.
   CALL METHOD i_igs_image_converter->get_image
     IMPORTING
       blob      = blob
       blob_size = blob_size
       blob_type = blob_type.
   DATA dsn1(20) TYPE c VALUE 'E:\test.bmp'.
DATA wa_mime1 TYPE w3mime.
*DATA wa_mime1 TYPE w3mimetabtype.
   OPEN DATASET  dsn1   FOR OUTPUT IN BINARY MODE.
   LOOP AT blob INTO wa_mime1.
     TRANSFER wa_mime1 TO dsn1.
     CLEAR wa_mime1.
   ENDLOOP.
MESSAGE ' successfull' TYPE 'I'.
   CLOSE DATASET dsn1.
ELSE.
   DATA: num TYPE i, message TYPE string.
   CALL METHOD i_igs_image_converter->get_error
     IMPORTING
       number  = num
       MESSAGE = message.
MESSAGE 'not successfull' TYPE 'I'.
ENDIF.

HI
i already converted it in binary form but when i transferring it to binary mode it generate error.
the code is like this.
LOOP AT blob INTO wa_mime1.
     TRANSFER wa_mime1 TO dsn1.
     CLEAR wa_mime1.
   ENDLOOP.
   CLOSE DATASET dsn1.

Similar Messages

  • Can anyone help me figure out how to copy .jpg (pictures) from my PC to my IPAD2?

    Can anyone help me figure out how to copy .jpg (pictures) from my PC to my IPAD2? 

    Create a folder on you PC and copy the pictures you want on the iPad into that folder. Then start iTunes and plug in your iPad. In the column on the left (about half way down) click on the name of your iPad.   Then click on the photos tab near the top and to the right of the screen.  Check the box that says Sync photos and then select the folder you put your pictures in from the drop down menu on the screen. Then click Apply down at the bottom right hand side of the screen. Hope that helps!

  • How to insert a picture into the Rich Text Editor

    hi,all
    I want to make a Press Releases page,that means I have to use the the Rich Text Editor.In this item,I dont know how to quote a picture into this field.though i know there is a picture icon in this field,and when i press it,it can pup up a window.That is the Image Properties Window,under this window,there is a URL text field.But I dont know what to fill in this field,I mean,I dont know what the URL link is .can you just give me a picture URL sample ?
    is it like "#APP_IMAGES#136_1_1.jpg" or something else ?
    hope to hear from you.thanks ...
    best regards
    hlee
    Edited by: hlee on 2011-3-30 下午8:04

    Hi,
    There is three types of images reference in oracle apex.
    1 Standard image -> url reference is -----> #IMAGE_PREFIX#menu/books_64.gif
    2 Workspace images -> url reference is ------> #WORKSPACE_IMAGES#java-icon.jpg
    3 Application images -> url reference is ------> #APP_IMAGES#JqueryIcon.jpg
    hope this helps you
    Thanks,
    Jaydip Bosamiya
    +91 - 76000 23053
    [http://jbosamiya.blogpost.com|http://jbosamiya.blogpost.com]

  • How do I place pictures into photo stream ?

    How do I place pictures into photo stream? (5s)

    Hi there Chirique,
    It looks like the article below may have the information you are looking for.
    iCloud: My Photo Stream FAQ
    http://support.apple.com/kb/HT4486
    -Griff W. 

  • How to get jpg photo into photoshop as jpg wt LR changes

    I can not determine how to get jpg photos from Lightroom into Photoshop CS3 without using the export function. With a raw photo I can simply press "clrl e" and the raw photo is converted into a tif or psd file and sent to photoshop. That is very convenient when you have worked on the photo and wish to make additional adjustments in CS3. When I do the same process with a jpg file, it converts the file from jpg into a tif at a much larger file size then necessary. Is there a way to get a jpg file which I have worked on within Lightroom into CS3 without using the export function? Thanks, Arthur

    Lee Jay, I think you are wrong this time (only)!
    Arthur, to solve your problem you have to do two things:
    1. In LR open preferences and activate to automatically write changes to XMP. This ensures that your JPG pictures are updated with the LR settings in the XMP container within the jpg file.
    2.in PSCS3 open preferences. In the file handling section you will find the option to 'prefer Adobe Camera Raw for JPEG files'. If this option is activated also jpg files are processed with ACR.
    You asked for a way to get a jpg file into CS3 without using export. Now you have that. After you made your adjustments in LR just open the jpg in CS3 and you will see the photo with all changes you have made. I tested this with LR and CS3 beta myself it it works perfectly.

  • Converting a JPG to a BMP

    Hi, I'm writing a program and I need to convert a JPG image to a BMP. I've looked around, and Java Advanced Imaging looks promising, but it seems that if one wants to run programs made with the JAI they need to install the JAI JRE. This, unfortunately, is not an option. Is there a way I can do this without asking that my users install another JRE? Thanks.

    Perhaps you can use the image I/O library (javax.imageio).
    It's part of the standard JRE.

  • How to import a picture into a Psd file using codes?

    I'm trying to import a picture into a psd file as a new layer, but i can't find the method of photoshop object in visual studio 2010 object browser. Is it possible to do this job using vb.net codes?
    Any suggestion will be gratuated!

    I beleive Michael L Hale stated that he used the ScriptListener to generate code for PhotoShop "menu File>Place".  Many things can not be done through in Photoshop Scripting through the Adobe's normal scripting methods Adobe provided for scripting.  However Adobe also supplied  the ScriptListener.8li plugin which when installed is a bit like the actions palette's action recorded without controls.  Everthing that can be recorded in Photoshop is written to two files on your desktop in script code one in Javascript the other VBS.  The Script code use an Action Manager Method so thing not posible with normal scripting methods can be use in scripts.  The only way to start and stop recording these two script files it to install ScriptListener.8li before you start Photoshop and to uninstall it after you exit Photoshop. Awarkward but better then nothing there is no logic just step, step, step like actions and the code is not all that readable.  However you can take that code and modify it to use vars to turn steps into javascript functions and whatever VBS uses.
    For example Place
    REM =======================================================
    DIM objApp
    SET objApp = CreateObject("Photoshop.Application")
    REM Use dialog mode 3 for show no dialogs
    DIM dialogMode
    dialogMode = 3
    DIM idPlc
    idPlc = objApp.CharIDToTypeID( "Plc " )
        DIM desc3
        SET desc3 = CreateObject( "Photoshop.ActionDescriptor" )
        DIM idnull
        idnull = objApp.CharIDToTypeID( "null" )
        Call desc3.PutPath( idnull, "D:\\Temp\\Portrait\\dsc6234.psd" )
        DIM idFTcs
        idFTcs = objApp.CharIDToTypeID( "FTcs" )
        DIM idQCSt
        idQCSt = objApp.CharIDToTypeID( "QCSt" )
        DIM idQcsa
        idQcsa = objApp.CharIDToTypeID( "Qcsa" )
        Call desc3.PutEnumerated( idFTcs, idQCSt, idQcsa )
        DIM idOfst
        idOfst = objApp.CharIDToTypeID( "Ofst" )
            DIM desc4
            SET desc4 = CreateObject( "Photoshop.ActionDescriptor" )
            DIM idHrzn
            idHrzn = objApp.CharIDToTypeID( "Hrzn" )
            DIM idRlt
            idRlt = objApp.CharIDToTypeID( "#Rlt" )
            Call desc4.PutUnitDouble( idHrzn, idRlt, 0.000000 )
            DIM idVrtc
            idVrtc = objApp.CharIDToTypeID( "Vrtc" )
            DIM idRlt
            idRlt = objApp.CharIDToTypeID( "#Rlt" )
            Call desc4.PutUnitDouble( idVrtc, idRlt, 0.000000 )
        DIM idOfst
        idOfst = objApp.CharIDToTypeID( "Ofst" )
        Call desc3.PutObject( idOfst, idOfst, desc4 )
    Call objApp.ExecuteAction( idPlc, desc3, dialogMode )

  • Jpg pictures into Pdf pages

    I am trying to help a group insert low resolution pictures into Pdf pages that have been created by ColdFusion, so that the pages open faster.
    What settings would be suggested so the Pdf pages are attractive and the pages open up fast?
    Thanks

    You would be better posting this is the Acrobat Forum.

  • How to insert a picture into excel file using ALE AUTOMATION

    Hi every body,
    I have to write report that export data from abap to exel the data contain a logo but I don't know how to insert picture to excel using ALE AUTOMATION.
    Please help me!
    Thank you!

    Hi,
    you have to join into SAP Code Exchange and download this zip:
    [ABAP2XLSX_daily.nugg.zip|http://code.sdn.sap.com/spaces/abap2xlsx/documents/btFzHQ3vKr36tCeJe7bhNc/download/btFzHQ3vKr36tCeJe7bhNc]
    Regards,
    Ivan

  • How convert java FOR loop into  taglib directive

    hi all,
    I have following code in my Jsp. It is working but, we dont want to use java FOR loop anymore. Instead use corresponding taglib directive.
    How can i convert this Java FOR loop into taglib implementation of FOR loop ?
                   <%
                   for(int i=0;i< arrMemberBenefit.length;i++)     {
                        pageContext.setAttribute("arrMemberBenefiti", arrMemberBenefit);
    System.out.println("PCPNAME: " + arrMemberBenefit[0].getPcpName());
    %>
                        <tr class="rowOdd">
                             <td headers="t1h1" class="first"><c:out value="${arrMemberBenefiti.member.firstName}${space}${arrMemberBenefiti.member.lastName}" /></td>
                             <td headers="t1h2" class="last"><c:out value="${arrMemberBenefiti.pcpName}" /></td>
                        </tr>
    <%}
    %>
    pl any help highly apprecialted
    pp

    Using the JSTL forEach tag:
    I have used your variable name for arrMemberBenefiti
    myself I would probably call it something like memberBenefit
    You may need to put the array into an attribute to begin with
    // just in case
    <% pageContext.setAttribute("arrMemberBenefit", arrMemberBenefit); %>
    // and the actual JSTL loop
    <c:forEach var="arrMemberBenefiti" items="${arrMemberBenefit}">
      <tr class="rowOdd">
        <td headers="t1h1" class="first"><c:out value="${arrMemberBenefiti.member.firstName}${space}${arrMemberBenefiti.member. lastName}" /></td>
        <td headers="t1h2" class="last"><c:out value="${arrMemberBenefiti.pcpName}" /></td>
      </tr>
    </c:forEach>Cheers,
    evnafets

  • How do you Combine Pictures into one Photo

    I'm really re.tarded when it comes to this stuff.
    I want to take 4 pictures and combine them, making like a montage and I have no clue how to do that.
    Message was edited by: S.E.S.

    Welcome to the Apple Discussions. Did your computer happen to have come with OmniGraffle? It is an amazing application and can create a collage very easily like this one I made out of 96 photos.
    If it didn't come with your computer it's demo mode it will let you work with up to 10 items on a page.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • How can I import pictures into an existing event?

    I am loading up my new MAC with various photos on CDs and would like to be able to import them into specific existing events, instead of creating a new event and dragging it to merge with another. How can I do this?  If not, is there an easy way to merge events without dragging from one end of the list to another - hard when you have a couple of hundred events.

    You can't.  All import will go into a new event.  Then you can drag that event onto the Event you want to put the photos in and that will merge the two.
    OT

  • How to insert a picture into a table extracting from another table in a for

    i have a form in which i have a image item though which i am saving a picture of datatype of long row or blob.This is working properly.
    But when i am saving this picture from screen into another table having same field name and same datatype,
    its not working.
    Can anybody find out it's solution
    om prakash sahoo
    ocac,bbsr

    find it under the java tutorial... should download n run it locally. its a good tutorial with all the stuff u need to know...

  • How to divide different pictures into pie pieces so that they fit together in a circle

    I have six photos that I need to divide into pie piece shapes so that they fit together in a perfect circle. How do I do this??

    Draw a unilateral triangle (all angles are 60 degrees therefore) with the shape tool and use it as a vector mask on the images or as a template for a selection. Copy&paste as needed and rotate in place, then add a circle on top to cover up the unwanted parts.
    Mylenium

  • How can I drag pictures into the new Pages so that they are inline where I release the drag?

    Back in the day, like last week, I could drag in a picture and if I was holding command when I let go, the image was inlined exactly where I released.  Now that functionality seems to be gone - or maybe I just don't understand how to access it.

    Thank you. That worked. I was able to open 1 window with multiple tabs. Thanks cor-el!

Maybe you are looking for