Convert JPG to BMP using XI

Hi
I would like to transfer the Image file from one Legacy System to SAP R/3 server which then ABAPers can utilize using TCode: <b>SE78</b>.
But here are the constraints -->
*) The Legacy System is providing the Image file in JPEG format <u>Only</u>.
*) SAP R/3 TCode : SE78, can <u>only</u> take the files in BMP format.
*) Even if you simply change the extension of JPEG file to BMP, then SAP R/3 is <u>not accepting</u> that file which suggest it needs typical BMP file only.
I referred this thread also
Error while uploading *.BMP file using SE78
In this thread user actually resolves his problem after using a tool which explicitly converted a JPG to BMP but they are not using XI.
Now is their any way with which JPG can be converted to BMP. I found couple of tools but they require the file first ( using browse option ) & then they will convert it, mean you can't call them using XI & provide that file as an argument.
I just need to know what you all think, is it possible to convert the JPG to BMP using XI or not. Also are you aware of any Java/.NET which can actually take the Image file ( JPG format ) & convert it & provide it back.
Regards
- Lalit -

Hi Lalit,
  I've made a quick search and in my opinion the better thing you can do, is to create a Java routine to convert JPG to BMP.
you can use JAI (Java Advanced imaging) to read input stream (JPG format), and convert into a BMP format.
<a href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide.pdf">This PDF</a> contains the JAI documentation and some examples.
I hope it will help.
Best regards
Manuel

Similar Messages

  • Is it possible to convert JPG to BMP within SAP ?

    Hi SAP Friends,
    We would like to know if it possible to convert JPG to BMP within SAP ? Our users upload jpg file in custom Z transaction and we store that JPG file in Custom Cluster table. Now, we need to get this JPG file, convert it into BMP and store it in SE78. You may ask, why dont we ask users to upload directly in SE78 ?  Our Custom Z transaction does other things, so we cannot ask users to use SE78 and also they get jpg files and not BMP files. So, we need to do conversion internally.
    Any ideas ?
    Niranjan

    Hi Niranjan,
    Unfortunately we cannot.
    Regards
    Aneesh.

  • Convert jpg to bmp

    Hi
    I am new to the java programming.
    and I have to convert jpg images to bmp images.
    can you please give me suggestions what can be done.
    thanks.

    i hav tried using ImageIO.. but it is not converting the image efficiently. Define 'efficiently'.
    i think there is some difference of 2 pixels..Of course there's a difference. JPG is a compressed format and BMP is not.

  • How to convert jpeg to bmp using java code

    I want to convert a jpeg image to bmp image using java so that any coloured image can be converted to black&white using java. Is there any utility to accomplish this?
    Thanks in advance

    Try out this category on Esus:
    http://www.esus.com/javaindex/j2se/jdk1.2/javaawt/awtgraphics/2dgraphics/images/javaimagetypes/javaimagetypes.html
    Cheers,
    Joris

  • Conver jpg to bmp

    Hi all,
    i need to convert JPG to BMP cause i want to display the picture via smartform.
    i dont want to save the pic throw se78.
    I know that many asked it before ,but i dint find answer.
    Please help!!

    open jpg file .
    in open file in bottom side there is option for save. click on that . it ask to u in which format u want to save it save it to bmp format it save in bmp format.

  • How do I convert a pdf file to a jpg or bmp file?

    I have a Mid 2010 iMac OX Yos 10.10.1 with an HP all in one printer/scanner. I am scanning a document to file and it is saving as a pdf I am trying to edit the document and the program i use to edit things like this is Paintbrush. However, for me to use this app to edit my project, the file must be in jpg or bmp format. Scanning the file as a photo to file is not an option either because for some odd reason it only scans the upper right hand corner of the document. I need to get this done TODAY any help on how to convert/change a file format would be AWESOME and would be indebted for life !!!!
    Thank you
    Stacielou

    Scanning to a PDF is a waste of time. I really don't understand why people do that. All you're doing is embedding a raster image (a TIFF, JPEG, etc.) inside a container file (the PDF). It doesn't save a bit of space. Scan images to what they are; a raster file.
    Your problem though is your junky scanning software doesn't work as it's supposed to when you do choose JPEG, or other raster pixel format, and only correctly scans the area you want when you choose PDF.
    Open the PDF in Preview and export it as the highest quality JPEG, or a TIFF. You'll then be able to open it in Paintbrush.

  • Image convert from jpg to BMP (black & white)

    Hi everybody
    here i am converting a jpg file to 2 bit monochrome image.
    Though this program is making the bmp monochrome image of passing jpg image.
    but the program is hanged in between.
    I don't understand the why it is hanging..though it is generating the result.
    please help me to solve the hanging problem.
    =================================================================================
    source output is:
    C:\j2sdk1.4.1_02\bin>java jaiexp.JAISampleProgram6 aish5.jpg
    1
    2
    FarmHouse2.bmp image
    ERROR: it doesn't finish gracefully....!!
    ==================================================================================
    source code
    package jaiexp;
    import java.awt.Frame;
    import java.awt.image.renderable.ParameterBlock;
    import java.io.IOException;
    import javax.media.jai.Interpolation;
    import javax.media.jai.JAI;
    import com.sun.media.jai.codec.BMPEncodeParam;
    import javax.media.jai.RenderedOp;
    import com.sun.media.jai.codec.FileSeekableStream;
    import javax.media.jai.widget.ScrollingImagePanel;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import javax.media.jai.widget.*;
    import com.sun.media.jai.codec.*;
         * This program decodes an image file of any JAI supported
         * formats, such as GIF, JPEG, TIFF, BMP, PNM, PNG, into a
         * convert it to BMP and save it as bmp file
         public class JAISampleProgram6 {
              /** The main method. */
              public static void main(String[] args) {
                   // Define the source and destination file names.
                   String outputFile = "C:\\j2sdk1.4.1_02\\bin\\jaiexp\\FarmHouse2.bmp";
                   Image bwImage = null;
                   /* Validate input. */
                   if (args.length != 1) {
                        System.out.println("Usage: java JAISampleProgram " + "input_image_filename");
                        System.exit(-1);
                   }//if ends
                   * Create an input stream from the specified file name
                   * to be used with the file decoding operator.
                   Image colorImage = null;
                   try {
                        colorImage = Toolkit.getDefaultToolkit().createImage(args[0]);
                   } catch (Exception e) {
                        e.printStackTrace();
                        System.exit(0);
                   }//try catch ends
                   ImageFilter filter = new BlackWhiteFilter();
                   ImageProducer producer = new FilteredImageSource(colorImage.getSource(),filter);
                   bwImage = Toolkit.getDefaultToolkit().createImage(producer);
                   // Create the ParameterBlock.
                   ParameterBlock pb = new ParameterBlock();
                   pb.add(bwImage);
                   // Create the AWTImage operation.
                   //PlanarImage im = (PlanarImage)JAI.create("awtImage", pb);
                   RenderedOp image1 = (RenderedOp)JAI.create("AWTImage", pb);
                   System.out.println("1");
                   try {
                        FileOutputStream stream = new FileOutputStream(outputFile);
                        System.out.println("2");
                        javax.media.jai.operator.EncodeDescriptor.create(image1,stream,"BMP",null,null);
    System.out.println("3");
                        javax.media.jai.operator.FileStoreDescriptor.create(image1,outputFile,"BMP",null,null,null);
                        System.out.println("4");
                        stream.close();
                   }catch(Exception e){
                        System.out.println("Error:"+e);
                   }//try catch ends
                   System.out.println("5");
              }//fun ends
         }//class ends
         class BlackWhiteFilter extends RGBImageFilter{
         public int filterRGB(int x, int y, int rgb){
         int alpha = (rgb >> 24) & 0xff;
         int red = (int)(((rgb >> 16) & 0xff) * 0.3f);
         int green = (int)(((rgb >> 8) & 0xff) * 0.59f);
         int blue = (int)((rgb & 0xff) * 0.11f);
         int bws = ((red+green+blue) > 127) ? 255 : 0;
         return ((alpha & 0xFF) << 24) | ((bws & 0xFF) << 16) | ((bws & 0xFF) << 8) | ((bws & 0xFF) << 0);
         }//class ends
    thanks in advance.
    regards
    - Deepak
    email: [email protected]
         

    Also keep in mind that there are two definitions of bitmap. You want the 2-color version where each bit represents one color or the other. However, thanks to Microsoft, their bitmaps are really just uncompressed strings of RGB values, storing each pixel in multiple bits.

  • Preview Problem when converting .jpg to .pdf

    My scanner isn't producing sharp enough images, so I am:
    1. Saving the 300 dpi scanned file in .jpg format
    2. Opening the .jpg file in Preview.
    3. Sharpening the image.
    4. Saving the .jpg file as a .pdf file.
    But Preview saves the .pdf file with huge dimensions (as though it had been scanned at 72 dpi instead of 300 dpi). So when I open the file in Acrobat, to OCR it, Acrobat thinks the file is huge (over 30" wide and over 40" tall) and the OCR chokes with a message that the page dimensions are too big. Obviously I could simply resave the sharpened .jpg file in .jpg format, and use Acrobat to convert it to PDF, which gives it the correct page dimensions. But the sharpened .pdf file looks better on screen when created by Preview. Is there any way to convert the .jpg file to .pdf within Preview which will keep the correct page size information? (Or, as a last resort, is there a Mac utility which will resize PDF dimensions?)

    Hi Bruce, and a warm welcome to the forums!
    You can create a Colorsync Filter to save a PDF/x-3 at your chosen resolution...

  • Havig problems converting JPG to PDF with Acrobat Prof 7

    I am using Acrobat professional 7. I am trying to convert JPG files to PDF. I have done this in the past without problems and now I am getting a message of "unrecoverable error". What can I do? I have tried doing this with one file and with multiple files and still get the same problem.

    What I do is:
    File
    Create PDF
    from Multiple files
    Browse
    (select file)
    add
    OK
    Then after I do all of that I get the message "unrecoverable error"
    I have created over the past year thousands of JPG files to PDF without problems. I can't seem to create a PDF from these JPG files today. I have tried using just one file and also several files and get the same message each time.

  • PDFmaker not converting Jpg attachments to emails in Microsoft Outlook 2013

    I am having problems converting jpg attachments to emails in Microsoft Outlook 2013 using PDFmaker. I'm running Adobe Acrobat 11 and just updated it to the latest version and that did not solve the problem.
    I can convert the emails and Word attachments and can convert the jpgs manually by saving them to my desk top and then adding them as attachments to the resulting PDF but I have several emails each was several attachments that I want to save and it will take me hours to do it manually.
    I was thinking there might be some security setting on the jpgs that is preventing PDFmaker from automatically converting them.
    I already confirmed that the Preference Conversion Setting is selected to include all attachments in the Adobe PDF. I also unselected the box that reads "block download of external content" but it did not help.

    Manual method is a difficult task .You can easily transfer your mails from the Thunderbird to MS Outlook using third party conversion software.i faced the same problem.i tried the following utility. It converts all my Thunderbird accounts to a single PST.you can also try the free demo version of the software.
    http://www.datacarelab.com/software-for-mbox-to-outlook.php

  • Applescript to convert PDF to JPEG using Preview?

    I know there's an existing script available on the internet that converts PDFs to JPEGs (it's here: http://macscripter.net/viewtopic.php?id=25350) BUT, for whatever reason, the quality, even when set to 600dpi, is crap. I get better results simply opening the PDF in Preview then saving as JPEG... even a 150dpi JPG from Preview is higher quality than a 600dpi file from this script I found...
    So, what I need help with is creating a applescript that converts PDF's to JPEGs using Preview (or whatever, as long as the quality of the JPEG is good). I have very little scripting experience so help is appreciate.
    Ideas?
    Thanks.

    Frank Caggiano wrote:
    Decided to finish this up as an interesting exercise. Hope you find it useful.
    One question for the  Applescripters here. The Automator action run as a shell script seems to return a list of filename aliases but the return value while looking like a list didn't behave as a list. I managed to rip it apart to get to the filepaths and the script works but it seems really kludgey . So my question is given the return of the Automator run as a do shell script what is a more correct way to handle it?
    Convert PDF to JPG
              © 2011 Frank Caggiano
              GNU Public License
              Convert pfd files to jpg images.
              The converted JPG files wil have the name of the original PDF files with the extension changed to JPG.
              The actual conversion uses the Automator action Render PDF Pages as Images.
              The user needs to create an Automator action with Render Pages as Images as the single action.
              Set the parameters for the conversion in the action.
              NOTE: this script assumes you're converting to jpg files If you select another output format in the action this script will
              need to be modified.
    -- choose PDF files
    try
              set sourceFiles to choose file with prompt "Select PDF files" of type {"com.adobe.pdf"} with multiple selections allowed
    on error msg number n
              if n ≠ -128 then
                        error "Unknow error: " & msg & space & n
              else
      quit
              end if
    end try
    -- choose destination folder
    try
              set destFolder to choose folder with prompt "Select Destination Folder"
    on error msg number n
              if n ≠ -128 then
                        error "Unknow error: " & msg & space & n
              else
      quit
              end if
    end try
    set destFolder to quoted form of POSIX path of destFolder
    -- select workflow
    try
              set workFlow to choose file with prompt "Select Work Flow" of type {"com.apple.automator-workflow"}
    on error msg number n
              if n ≠ -128 then
                        error "Unknow error: " & msg & space & n
              else
      quit
              end if
    end try
    set workFlow to POSIX path of workFlow
    repeat with sourceFile in sourceFiles
      -- get base name of the source file
              set bName to do shell script "basename " & quoted form of POSIX path of sourceFile
      -- Strip off the extension
              set text item delimiters to "."
              set bName to text item 1 of bName
              try
                        set res to do shell script "automator -i " & quoted form of POSIX path of sourceFile & space & workFlow
              on error msg number n
                        error msg & space & n
              end try
      -- Seems strange to  do it this way but it works
              set text item delimiters to "\""
              set theList to text items of res
    We go through the list of converted files. If there is more then one then the second and subsequent files
    will get and integer added to the name to avoid conflict.
              set cnt to 0
              repeat with convertedFile in theList
                        if convertedFile does not contain "alias" and convertedFile does not contain "}" then
                                  set fullPath to quoted form of POSIX path of convertedFile
                                  if cnt ≠ 0 then
                                            do shell script "mv " & fullPath & space & destFolder & bName & "_" & cnt & ".JPG"
                                  else
                                            do shell script "mv " & fullPath & space & destFolder & bName & ".JPG"
                                  end if
                                  set cnt to cnt + 1
                        end if
              end repeat
    end repeat
    Hi Frank--
    I tried the script you wrote and created the Automator workflow with the single action as requested, saved it to the desktop then selected it when your script's dialogue requested it. However, at that point your script game me the following error. Ideas? I did save the workflow as a workflow and I selected it directly, so I'm not sure why it thinks that the "workflow file does not exist" ? :
    error "The workflow file does not exist. 255" number -2700 from «script» to item

  • Jpgs or bmps in RTFs to be stored in CLOBs?

    Which should be used in the templates of the various letterheads of RTF documents to be subsequently stored as Oracle 10G CLOBs-- JPGs or BMPs? Although JPGs start smaller than BMPs, the JPGs in RTFs have larger file sizes than those of BMPs in RTFs. Has anyone done any size studies that looked at this in CLOBs?

    Are you storing the entire RTF file in the database? If no, then I would suggest using the JPGs. I wouldn't worry too much about the size of the RTF on file system. I would only worry about the size of the binary going into the Database.
    But one question. Do you want to use CLOB for JPG and BMPs? Consider using BLOB rather.

  • PDF into Smartforms or Convert PDF into BMP

    Hello,
    we have an 4.6c System. I have an PDF Document. The Content is a signature.
    Now i want import the PDF document into a Smartforms.
    How can i import this automatically? => Not on dialog.
    Background: the man to sign on a touchpad. it create a pdf document with the signature. Now i catch me the document and would like insert the signature into the smartforms "shipping ticket".
    can anybody help me? Is it better convert the pdf into bmp? And then yes, how can i convert pdf into bmp.
    Thanks !!!!
    Message was edited by:
            DDC

    ABBY RE
    I'm not one to spend money when it is not necessary.
    Try deskUNPDF for Mac as suggested. As I said you can do a few trials per document. You won't know if you don't try. If it is only text then it probably would do fine. However you need to look at the different things you want to convert, try it out and see if it does the job. Warning: The limit in the trial is 4 single and separate pages per document so you may need to divide you document into smaller documents. If it is not doing what you want then maybe Adobe Writer is what you need, particularly if you do a lot of PDF conversions.
    As a basic document converter I would certainly use it again. I have to say I have come across a lot of useful freebie info and good software sites in this forum.
    dcm18

  • Acrobat X will not convert JPG from a cell phone camera to pdf.

    One our PMs took some photos with his camera phone and Acrobat doesn't do anything when you try to convert the jpg to pdf.  If we try to combine in Acrobat, the process starts, the Combine box opens and shows the files, but when you click on combine files Adobe pops a message saying that Adobe has stopped working and closes the program, searches the Internet for a solution, and finds, NOTHING.  Which incedentally is what the seach finds in this forum, NOTHING, even if you search for Adobe.
    So I call customer service, and for the first time in years, I'm told that the maintenance we purchased only covers installation.  Seriously?  I am now convinced, as is my corporate IT department, that Adobe is overpriced and under serviced.  Not to mention the push to eliminate the individual products and force us to purchase expensive suites.  Really?!  Did you already forget about Microsoft's legal woes for bundling software?
    I will never again purchase nor recommend Adobe products.
    If someone else is having this problem, good luck.

    Hi David, and thank for responding.  We have volume licenses for an enterprise version of Acrobat Pro X.  (See email below.)  It was for 2 years of maintenance and included upgrades.  As for the photos, we copied them from the camera to the desktop.  We can print them to Adobe and I can convert them to bmp and then convert them to pdf.  However, I cannot convert the jpg to pdf directly.  Adobe stops running and Windows closes the program.  I can successfully convert other jpg photos though.  This is the case on two different PCs.  We run Windows 7x64.  I don't know what is different with the jpg from the Samsung 350 Windows phones that causes this anomaly.  Any ideas would be welcomed.  Thanks!
    Brian
    From: Ali Emami  [removed by moderator]
    Sent: Thursday, September 24, 2009 11:30 AM
    To: Brian Baldwin
    Cc: Kitt Penn
    Subject: RE: Adobe's Volume Licensing Program
    Good morning Brian:
    It was pleasure speaking with you. . Thanks for your valued request.   I called Zones and I talked to Kitt Penn 253-205-3867  who will be happy to assist you with a price for:
    39 seats 2 years Upgrade plan for Acrobat 9 Pro
    Thanks and wish you a very happy day,
    ALI
    Ali Emami
    Adobe Systems Incorporated
    CLP Core Business Team-Western Region
    1-800-846-2481 Ext 7425
    [removed by moderator]
    Brian Baldwin, PM
    Project Coordinator
    Schuff Steel - Phoenix, AZ
    PL: 602 452-4420
    Fax: 602 251-0325
    [removed by moderator]
    web: www.schuff.com

  • How to convert JPG files to PDF

    Suggestions on how to convert JPG files to PDF using Adobe?

    You would either need the PDF Pack service, or Adobe Acrobat or Photoshop.

Maybe you are looking for

  • All of a sudden when I try to add footage to my sequence only the audio will go in.

    This was not happening last week on the same project, I was pretty well into it when this stared. I've tried everything I can think of, restarting everything, trying footage from other jobs, making a new project, new sequence. The video layers are no

  • Deadlock in application module's web service.

    Hi, Please find the log attached. This webservice will be instaniated 70-80 times in one minute. This is in production. Please let me know what would be the problem? Thanks, Tulasi Raghuveer. <Dec 4, 2010 7:55:53 AM EST> <Warning> <oracle.j2ee.ws.com

  • Problems pasting from Excel 2008 to Numbers

    I'm trying to make the switch from Excel to numbers and ran into the following problem. If I cut a group of cells from Excel 2008 and try paste it into Numbers it does not work. I can paste into another place in Excel, Stickies or OpenOffice, but not

  • Restoring with Time Machine  AWSOME

    I just had a hard drive crash. Everyones worst nightmare. I have to tell you Time Machine Worked like a dream. I was nervous and with good reason all my files, music, pictures etc... Coming out the pc world I am used to long hours reinstalling shutti

  • Question about N

    Now that you can download N: http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=9BF E4FC5&nplm=D4141ZM%2FA I was wondering if this had any effect on a/b/g. For example: If upgrade to N, will my speed increase if I am connect