Save a panel with a graphic into a bmp file

I need to save a panel with a draw to a bmp file or a jpeg file, but I don't know which classes and methods I have to use.
Thank for your help.

Sorry, made an incomplete posting!!
Here's all the code, hope it helps!
  public Image getScreenshot()
       double scale = 0.67;
          BufferedImage result = new BufferedImage( this.getWidth(), this.getHeight(), BufferedImage.TYPE_4BYTE_ABGR );
          Graphics2D g = (Graphics2D)result.getGraphics();
//          g.scale( scale, scale );
          paintAll( g );
          // Crop image
       result = result.getSubimage( m_borderThickness,
                                                                              m_borderThickness,
                                                                              m_width-m_borderThickness,
                                                                              m_height-m_borderThickness
       // Save as JPG
          String fname = "D:\\temp\\test4.jpg";
          try{
               FileOutputStream out = new FileOutputStream( fname );
               JPEGEncodeParam param = JPEGCodec.getDefaultJPEGEncodeParam( result );
               param.setQuality( 1, false ); // use maximum quality
               JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( out );
               encoder.encode( result );
               out.close();
          } catch( IOException e ) {
                    e.printStackTrace();
                    throw new Error( "Could not save " + fname + " with JPEGImageEncoder" );
          // Load and Re-Scale JPG
          Image img = new ImageIcon( fname ).getImage();
          return result.getScaledInstance( (int)(result.getWidth() * scale),
                                                                                        (int)(result.getHeight() * scale),
                                                                                         //Image.SCALE_DEFAULT
                                                                                        Image.SCALE_AREA_AVERAGING
                                                                                        //Image.SCALE_SMOOTH
  }

Similar Messages

  • How to print an excel file (2010 version) with multiple tabs into a pdf file with bookmarks (acrobat 9). I was able to do this easily using excel (2007 version).

    Recently I got a new laptop, with excel 2010 version and acrobat 9 standard.
    I could no longer print (save as) an excel file with multiple tabs into a pdf file with bookmarks.
    My old computer has excel 2007 version and acrobat 9 standard.
    Print an excel file into pdf with bookmarks was a piece of cake.
    Both machine has the same add-in -- Acrobat PDFMaker Office COM addin
    Thanks if anyone could help me with this.
        Tom

    You need to upgrade Acrobat to a newer version.
    On Thu, Oct 30, 2014 at 4:12 PM, excel-pdf-bookmarks <

  • How to save the content of a JTextArea into a txt file?

    Hi, I want to save the content of a JTextArea into a txt file line by line. Here is part of my code(catch IOException part is omitted):
    String s = textArea.getText();
    File file = new File("file.txt");
    BufferedWriter bw = new BufferedWriter(new FileWriter(file));
    bw.write(s);
    bw.close();
    But I found in the file all is binary code instead of text, any people can help me?
    Thanks in advance

    I can see text in the file now, but the problem is
    when I write three lines in textarea, for example
    111
    222
    333
    then I open the txt file with notepad, it is
    111222333
    How to save them line by line? Use a PrintWriter. It lets you write lines (it's the same class as System.out).
    http://java.sun.com/j2se/1.4/docs/api/java/io/PrintWriter.html

  • Adobe story does not export lines of dialogue that are amrked with (CONT'D) into a csv file.

    For some reason Adobe story does not export lines of dialogue that are marked with (CONT’D) into a csv file. The rest of the dialogue exports fine, bit the bits that are marked with (CONT’D) do not show up in the dialogue column !. Can this be changed with some settings or is this a bug? The script was imported from an FDX file. If anyone has a fix for this, please, let me know.
    Thenk you.

    Thanks for reporting this issue.
    This is indeed a bug.
    Just to get correct data in csv, a workaround for this issue could be to replace word 'CONT'D' with a place-holder word, perform an export-to-csv and then change it back.
    1. Press Ctrl+F in script to open Find/Replace
    2. Replace word 'CONT'D' with a placeholder word, say 'TEMPCONTD'
    3. Export the script to csv
    4. Now replace the placeholder word with 'CONT'D'

  • How to converting a flash clip into a bmp file quickly

    Hi,
    I’d like to get help on converting a flash clip into a
    bmp file. I have an application developed with ActiveX technology.
    There is a flash control embedded in the ActiveX control, which has
    a printing button. The end users can press the printing button to
    print the flash picture as well as other text content.
    I get the flash picture for printing in follow steps:
    1.Create a BitmapData object
    var bmp:BitmapData = new BitmapData(w, h, false);
    2.Obtain the image of current flash
    bmp.draw(mc, mc.transform.matrix, new ColorTransform(), 1,
    new Rectangle(x, y, w, h));
    3.Get pixels of flash image one by one in loop, and save them
    into a PixelCollection
    bmp.getPixel(col, row);
    4.Move the PixelCollection into flash container
    fscommand("print", load_PixelCollection);
    5.Ocx control gets the PixelCollection and converts it into
    BMP format
    But I find it is very slow when action script gets pixels one
    by one. Getting pixels of a middle size flash may spend one minute.
    It is hard for our customer to stand. Does anyone have idea to get
    the flash image quickly? 
    Any help is appreciated.
    Shi Hang

    What about the built-in print methods, wouldn't it be better
    to use those here?
    Getting all pixel values is a time intensive process, because
    of the amount of pixels. It may be a bit faster if you split the
    getPixel() loop over some frames, but I'm not exactly sure how to
    do that (just read it somewhere).
    If the content is fixed, you could create the pixel array in
    the background while the user looks at it. This is quite some
    overhead, but when the user decides to print, the array would
    already be there.
    Finally, not helpful here, but interesting:
    quote:
    BitmapData.getPixels()
    No longer do you have to loop through every pixel in a
    bitmap, one at a time with getPixel to send a bitmap to the server.
    This method returns a ByteArray containing the hexadecimal color
    value of each of the pixels in the specified rectangular region of
    a bitmap. Use this method in conjunction with the new ZLib
    compression method; ByteArray.compress() to compress and send a
    bitmap over the wire to a server so it can be converted into a file
    ready for downloading.
    (from
    http://www.flashguru.co.uk/actionscript-3-new-capabilities/)
    This will be available in AS 3.
    hth,
    blemmo

  • Having problem saving an iamge into a BMP file, please help!

    I'm writing a class to read an BMP image and output it again into another BMP file.
    After searching on the forum i have found some code for reading and writing bmp files, i put them togather to make up this class, however, the output bmp file is not correct, can anyone look at my code and tell me wots wrong? thanks!
    public class BMP {
    byte bf[]=new byte[14];
    //     private byte bitmapFileHeader [] = new byte [14];
    byte bi[]=new byte[40];
         public Image BMPReader(String filePath){
              Image image = null;
         try{
         FileInputStream fs=new FileInputStream(filePath);
         fs.read(bf,0,14); //Reads the 14byte fileheader      
         fs.read(bi,0,40); //reads the 40byte infoheader
         int nwidth=(((int)bi[7]&0xff)<<24) //pic width
         | (((int)bi[6]&0xff)<<16)
         | (((int)bi[5]&0xff)<<8)
         | (int)bi[4]&0xff;
         int nheight=(((int)bi[11]&0xff)<<24) //pic height
         | (((int)bi[10]&0xff)<<16)
         | (((int)bi[9]&0xff)<<8)
         | (int)bi[8]&0xff;
         int nbitcount=(((int)bi[15]&0xff)<<8) | (int)bi[14]&0xff;
         //pic size
         int nsizeimage=(((int)bi[23]&0xff)<<24)
         | (((int)bi[22]&0xff)<<16)
         | (((int)bi[21]&0xff)<<8)
         | (int)bi[20]&0xff;
         //parse 24bit bmp
         if(nbitcount==24){
         int npad=(nsizeimage/nheight)-nwidth*3;
         int ndata[]=new int[nheight*nwidth];
         byte brgb[]=new byte[(nwidth+npad)*3*nheight];
         fs.read (brgb,0,(nwidth+npad)*3*nheight);
         int nindex=0;
         for(int j=0;j<nheight;j++){
         for(int i=0;i<nwidth;i++){
         ndata [nwidth*(nheight-j-1)+i]=
         (255&0xff)<<24
         | (((int)brgb[nindex+2]&0xff)<<16)
         | (((int)brgb[nindex+1]&0xff)<<8)
         | (int)brgb[nindex]&0xff;
         nindex+=3;
         nindex+=npad;
         Toolkit kit=Toolkit.getDefaultToolkit();
         image=kit.createImage(new MemoryImageSource(nwidth,nheight,
         ndata,0,nwidth));
         else
              JOptionPane.showMessageDialog(null, "The choosen BMP image is not 24bit" +
                        "only 24bit bitmap is supported for BMP image.",
                   "Invalid image", 0);
              image=(Image)null;
         fs.close();
         }catch (Exception e){
         System.out.println(e);
         return image;
    //     --- Private constants
         private final static int BITMAPFILEHEADER_SIZE = 14;
         private final static int BITMAPINFOHEADER_SIZE = 40;
         //--- Private variable declaration
         //--- Bitmap file header
         private byte bitmapFileHeader [] = new byte [14];
         private byte bfType [] = {'B', 'M'};
         private int bfSize = 0;
         private int bfReserved1 = 0;
         private int bfReserved2 = 0;
         private int bfOffBits = BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE;
         //--- Bitmap info header
         private byte bitmapInfoHeader [] = new byte [40];
         private int biSize = BITMAPINFOHEADER_SIZE;
         private int biWidth = 0;
         private int biHeight = 0;
         private int biPlanes = 1;
         private int biBitCount = 24;
         private int biCompression = 0;
         private int biSizeImage = 0x030000;
         private int biXPelsPerMeter = 0x0;
         private int biYPelsPerMeter = 0x0;
         private int biClrUsed = 0;
         private int biClrImportant = 0;
         //--- Bitmap raw data
         private int bitmap [];
         //--- File section
         private FileOutputStream fo;
         //--- Default constructor
         public void saveBitmap (String parFilename, Image parImage, int
         parWidth, int parHeight) {
         try {
         fo = new FileOutputStream (parFilename);
         save (parImage, parWidth, parHeight);
         fo.close ();
         catch (Exception saveEx) {
         saveEx.printStackTrace ();
         * The saveMethod is the main method of the process. This method
         * will call the convertImage method to convert the memory image to
         * a byte array; method writeBitmapFileHeader creates and writes
         * the bitmap file header; writeBitmapInfoHeader creates the
         * information header; and writeBitmap writes the image.
         private void save (Image parImage, int parWidth, int parHeight) {
         try {
         convertImage (parImage, parWidth, parHeight);
         writeBitmapFileHeader ();
         writeBitmapInfoHeader ();
         writeBitmap ();
         System.out.println("finished");
         catch (Exception saveEx) {
         saveEx.printStackTrace ();
         * convertImage converts the memory image to the bitmap format (BRG).
         * It also computes some information for the bitmap info header.
         private boolean convertImage (Image parImage, int parWidth, int parHeight) {
         int pad;
         bitmap = new int [parWidth * parHeight];
         PixelGrabber pg = new PixelGrabber (parImage, 0, 0, parWidth, parHeight,
         bitmap, 0, parWidth);
         try {
         pg.grabPixels ();
         catch (InterruptedException e) {
         e.printStackTrace ();
         return (false);
         pad = (4 - ((parWidth * 3) % 4)) * parHeight;
         biSizeImage = ((parWidth * parHeight) * 3) + pad;
         bfSize = biSizeImage + BITMAPFILEHEADER_SIZE +
         BITMAPINFOHEADER_SIZE;
         biWidth = parWidth;
         biHeight = parHeight;
         return (true);
         * writeBitmap converts the image returned from the pixel grabber to
         * the format required. Remember: scan lines are inverted in
         * a bitmap file!
         * Each scan line must be padded to an even 4-byte boundary.
         private void writeBitmap () {
         int size;
         int value;
         int j;
         int i;
         int rowCount;
         int rowIndex;
         int lastRowIndex;
         int pad;
         int padCount;
         byte rgb [] = new byte [3];
         size = (biWidth * biHeight) - 1;
         pad = 4 - ((biWidth * 3) % 4);
         if (pad == 4) // <==== Bug correction
         pad = 0; // <==== Bug correction
         rowCount = 1;
         padCount = 0;
         rowIndex = size - biWidth;
         lastRowIndex = rowIndex;
         try {
         for (j = 0; j < size; j++) {
         value = bitmap [rowIndex];
         rgb [0] = (byte) (value & 0xFF);
         rgb [1] = (byte) ((value >> 8) & 0xFF);
         rgb [2] = (byte) ((value >> 16) & 0xFF);
         fo.write (rgb);
         if (rowCount == biWidth) {
         padCount += pad;
         for (i = 1; i <= pad; i++) {
         fo.write (0x00);
         rowCount = 1;
         rowIndex = lastRowIndex - biWidth;
         lastRowIndex = rowIndex;
         else
         rowCount++;
         rowIndex++;
         //--- Update the size of the file
         bfSize += padCount - pad;
         biSizeImage += padCount - pad;
         catch (Exception wb) {
         wb.printStackTrace ();
         * writeBitmapFileHeader writes the bitmap file header to the file.
         private void writeBitmapFileHeader () {
         try {
         fo.write (bfType);
         fo.write (intToDWord (bfSize));
         fo.write (intToWord (bfReserved1));
         fo.write (intToWord (bfReserved2));
         fo.write (intToDWord (bfOffBits));
         catch (Exception wbfh) {
         wbfh.printStackTrace ();
         * writeBitmapInfoHeader writes the bitmap information header
         * to the file.
         private void writeBitmapInfoHeader () {
         try {
         fo.write (intToDWord (biSize));
         fo.write (intToDWord (biWidth));
         fo.write (intToDWord (biHeight));
         fo.write (intToWord (biPlanes));
         fo.write (intToWord (biBitCount));
         fo.write (intToDWord (biCompression));
         fo.write (intToDWord (biSizeImage));
         fo.write (intToDWord (biXPelsPerMeter));
         fo.write (intToDWord (biYPelsPerMeter));
         fo.write (intToDWord (biClrUsed));
         fo.write (intToDWord (biClrImportant));
         catch (Exception wbih) {
         wbih.printStackTrace ();
         * intToWord converts an int to a word, where the return
         * value is stored in a 2-byte array.
         private byte [] intToWord (int parValue) {
         byte retValue [] = new byte [2];
         retValue [0] = (byte) (parValue & 0x00FF);
         retValue [1] = (byte) ((parValue >> 8) & 0x00FF);
         return (retValue);
         * intToDWord converts an int to a double word, where the return
         * value is stored in a 4-byte array.
         private byte [] intToDWord (int parValue) {
         byte retValue [] = new byte [4];
         retValue [0] = (byte) (parValue & 0x00FF);
         retValue [1] = (byte) ((parValue >> 8) & 0x000000FF);
         retValue [2] = (byte) ((parValue >> 16) & 0x000000FF);
         retValue [3] = (byte) ((parValue >> 24) & 0x000000FF);
         return (retValue);
    }

    You dont have to write a whole program to read and write BMP files, rather I would recommend you to use latest version of JAVA.
    Java version 5 supports reading and writing of BMP images :)
    File file = new File("walkleft.bmp");
    BufferedImage bi = ImageIO.read(file);   // Here u can read bmp images
    ImageIO.write(BufferedImage, "bmp", new File("newimage.bmp"); //Same way you can write themCheers

  • Save waveform data with corresponding time array to spreadsheet file

    Hello to all
    I am looking for a possibility to save voltage data acquired and displayed continousely to a spreadsheet file. Acquiring and displaying is not a big problem, but I have troubble to save the data with the corresponding timestamp with more than seconds accuracy. I am acquiring the data at 1000 Hz and read packages of 500 samples. The recording time should not be limited, it will be started and stopped manually. In fact the acquired voltage data first has to be scaled and than saved. If I use the 'WRITE WAVEFORM TO SPREADSHEET' VI the time column is in seconds' accuracy and that is not what I need. If I create my own time array from the waveform parameters I have timing problems. The accuracy in time should reflect the sample rate. I will attach one of my not very successful trials for better understanding.
    please help a newcomer!
    Thanks in advance
    Thomas
    LV 7.1
    Attachments:
    display & record forces v.1.0.vi ‏181 KB

    I usually follow a simple method to generate time stamp
    I keep sampling rate and number of samples to read as equal and do as shown in the attached VI
    I also remember building a VI with a small modification to this time stamp generation logic to cater to acq, where number of samples to read is half/one fourth/one tenth of sampling rate specified, but cannot find that VI.
    Hope this helps
    Regards
    Dev
    Attachments:
    Acq_DAQmx_filesave_time stamp.vi ‏121 KB

  • How to save changes developed with LR to the original photo file?

    Once changes developed I want to save them onto the original file. I export the selected image (original photo + changes) with overwriting choice but the result file has only the original and not the changes

    Presumably we’re talking about something other than RAW files, here, right?
    LR is not Photoshop.  I don’t think you can overwight your original during an Export because it is in use.  LR isn’t really set up to do this, anyway.  LR is non-destructive so it would apply whatever settings it has for an image to the image and display the result for you.  If you overwrote the image, then LR would still apply the settings it had for the original image to the new image with the same name and would effectively be applying the settings twice, which is not what you want. 
    What you probably want to do is export to a subfolder and then re-import those images so what you’ve exported are distinct from your originals.  If you really don’t want your originals after the export, just delete the originals and leave the exported images that you’ve already imported.

  • Splitting of a CSV File with Multiple Records into Multiple XML File

    Dear All,
    <b> I am doing a Scenario of CSV to XML Files. I am using BPM for the same. My incoming CSV File has got multiple records. I want to break this Multiple records into Multiple XML Files having one record each.</b>
    Can someone suggest how can I break this rather Split this into Multiple XML Files.
    Is Multimapping absoltely necesaary for this. Can't we do this without Multimapping. Can we have some workaround in the FCC parameters that we use in the Integration Directory.
    Kindly reply ASAP. Thanks a lot to all in anticipation.
    Pls Help.
    Best Regards
    Chakra and Somnath

    Dear All,
    I am trying to do the Multimapping, and have 0....unbounded also. Someways it is not working.
    <b>
    Smitha please tell me one thing...Assigning the Recordsets per Message to 1, does it mean that it will write multiple XML Files as I want.</b>
    Also I am usinf Set to Read only. So once the File is read it becomes RA from A. Then will it write the other Records.
    I have to use a BPM because there are certain dependencies that are there for the entire Process Flow. I cannot do without a BPM.
    Awaiting a reply. Thanks a lot in anticipation.
    Best Regards
    Chakra and Somnath

  • Save an 16 bits grayscale image in a bmp file

    Hello,
    I need to save a bmp file using an I16 grayscale picture.
    I already did the following VI that saves the picture in bmp but the colors are not good : there is only blue levels.
    I think there is a problem with the type of data that feed "array to color image" or with the colorscale but i don't manage to find where.
    Hope you can help me.
    Tank you.
    Ben 

    Hi
    The arraytocolorimage expects U32 because expects a RGB color, try this instead of the "toU32"
    Rodrigo Cuenca
    www.cidesi.com

  • Problem with importing graphics into InDesign

    This is a fictitious example to illustrate my problem...
    I have .PSD file measuring 10cm square. It's completely blank except for a layer containing a 5cm square box in the middle. When I import to InDesign it places as a 10cm square picture frame (with the 5cm image in the middle surrounded by blank space), rather than a 5cm square picture frame "snapped" to the edges of the .PSD content.
    This means doing a "Fit Frame to Content" now makes the InDesign frame the same dimensions as the .PSD document (ie. 10cm square), when it used to make it 5cm square (i.e the same dimensions as the CONTENT of the .PSD document). Any ideas about changing this back? I've no idea what's changed recently...
    Apologies; that's been described incredibly badly. I hope someone understands what I mean!
    Thanks in advance

    Thanks guys. But in the past when this has happened it's seemed to be linked to the last image I opened in PhotoShop. Often I have to render PDFs in PhotoShop to send visuals to printers and, depending on what I pick in the "Crop to:" drop down box, in the past has altered the way my next image imports in InDesign. In the past if the next .PSD image imported into InDesign with the extra white space around it, I turned Import Options on and then got similar "crop to" options in InDesign, and (off the top of my head) chose "Bounding Box" to resolve the issue. Now I'm just getting the option to turn layers on or off.
    That said, InDesign does now seem to be behaving exactly as you (Daniel) describe. This is annoying because I've been testing this now on a .PSD graphic which used to place and crop to the content, but now places at the size of the full PhotoShop document.
    And Rik: I agree that I could crop the original images in PhotoShop, which would technically resolve the issue - and may end up being what I have to do in the short term. But I've got a bee in my bonnet about this now, because this isn't how InDesign has been behaving for me for the past 5 years.
    I've tried deleting the preferences for both InDesign and PhotoShop in the vain hope it would be as simple as that. That didn't work.
    I'll keep searching for the answer...

  • How to save the value in Cedit control into a text file bu using measurement studio c++?

    Im using measurement studio c++ to create a application. How to save a randomly generated value which display in the CNumberEdit Control to a text file? how to do the coding part?

    You can use the CNiFile class to write the value out to a file. For example, create a new Measurement Studio C++ project and follow these steps:
    Add a CNiNumEdit to the dialog.
    Add a member variable for the CNiNumEdit called m_numEdit.
    Add a button to the dialog.
    Double-click the button to add a message handler for the button's BN_CLICKED message.
    Add the following code to the button's BN_CLICKED message handler:
    CNiFile file("C:\\Values.log", CFile::modeCreate | CFile::modeWrite | CFile::typeText);
    file << m_numEdit.Value << endl;
    file.Close();
    Run the application, edit the CNiNumEdit's value, and click the button. The value should be written to the Values.log
    file as specified in the code above.
    Hope this helps.
    - Elton

  • Save login/password with Proxy HTTP "Auto" preset (.pac file)

    Hi,
    I'm behind an Internet proxy. I have configured my iPhone with the following parameters :
    Proxy HTTP : Auto + the right URL to get my enterprise .pac file.
    What bothers me : I have to re-enter my login/password frequently.
    Do you have the same problem ?
    Note : The Proxy HTTP "Manual" preset let me enter these login and password, why not the "Auto" preset ?

    Hello,
    Were you able to successfully build your AIR app?  It is possible to bypass the timestamp but there are caveats.  Here's what the docs have to say:
    If ADT cannot connect to the time-stamp server, then signing is canceled and no package is produced. Specify -tsa none to disable time-stamping. However, an AIR application packaged without a timestamp ceases to be installable after the signing certificate expires.
    Chris

  • When I forward an HTML email with embedded graphics to someone, it forwards it as plain text.. this is driving me batty.. how do I forward such mails INTACT??

    I have the latest Thunderbird installed on a new 64-bit Winblows Eight netbook.. fantastic program, but one problem is driving me absolutely batty, and after using the latest Thunderbird for weeks, I simply can't figure out how to fix it..
    I'm on a lot of mfr. and other kinds of mailing lists, like eBay watch list alerts, and so on.. these are not s p a m (although I get plenty of that.. who doesn't).. but lists I WANT to be on..
    Many such emails from those mailing lists are in HTML format with embedded graphics.. I'm not talking about graphic file attachments, but embedded graphics which are coming from the senders' servers, and appear AS a graphic in the email.. sometimes such emails are one huge graphic with hardly any text.. all well and good..
    However, here's the problem.. when I want to forward such an email to a friend, Thunderbird ALWAYS formats it as plain ASCII text.. I know this because I look in the "sent mail" folder, and can see that it has turned an HTML email with embedded graphics into plain ASCII text..
    I absolutely can't figure out how to get it to forward an HTML email with embedded graphics INTACT, so the sender receives it looking the way it looks when I receive it from a mailing list, or an advertiser, or eBay, or whoever..
    Is Thunderbird capable of forwarding an HTML email with embedded graphics INTACT?.. If so, how / where do I turn on that capability?..
    If the capability to do this isn't built into the program, is there an add-on I can install that will give it that ability?..
    I am not new to computers.. but this really has me stumped.. I want to put Thunderbird on my 32-bit Vista laptop and stop using its horrible "Windoze Mail" program, which I've been using for years, and is slower than snot, and has all kinds of other problems..
    So, assuming whoever reads this FULLY understands my question, PLEASE tell me how to get Thunderbird to have the ability to forward an HTML email with embedded graphics AS-IS, so the receiver(s) I forward it to see it exactly the way I see it when I receive it.. if that ability is built in, please tell me how to turn it on.. if that ability is not built-in, please tell me what add-on I need to install to give Thunderbird this capability.. if Thunderbird absolutely can't forward an HTML email with embedded graphics at all, please also tell me that..
    A virtual box of candy and a dozen long-stemmed roses to anyone who can give me a solution that works..
    Thanks..

    Dear Mr. Toad (my all-time favorite ride at Disneyland ;-) ..
    Thanks so much for your detailed reply.. my netbook is in the bedroom, turned off.. I (so far) only use it in the evening, in the bedroom.. I've saved your response, and will try your suggestions, and let you know if they solve the problem I described. I really appreciate you taking the time to post such a detailed reply..
    I can't answer your Thunderbird "configuration" questions, because I'm in the living room, using the crap Vista laptop, on which I plan to install Thunderbird, and then take Windoze Mail out in the street and drive over it a few times.. I'll get back to you one way or the other, and let you know if your instructions solved the problem, or not..
    I don't understand why Thunderbird "out of the box", so to speak, simply doesn't forward HTML emails with embedded graphics, (like Outlook Excess, and Winblows Mail do).. without having to go through those steps. I personally HATE HTML email, but over the years, it's become more and more prevelant.. so it's a problem I must fix..
    Thanks again..
    Harv..

  • Want to save the number -9999 into a binary file

    Hello:
    I have this function in which I save different numbers (integers or doubles) into a binary file (with another extension) but when i tried to convert -9999 into bytes and then save it in the file ; it saves -9960 not -9999 as it should. I do not know why.
    This is my function:
    public static void createFile(Double [][] Grid, String txtOutputFile, String[] gridInfoFile){
         Integer[][] intGrid = null ;
         File file = new File(Utils.ChangeFileExt(txtOutputFile, ".myExt"));
         try {
                   FileOutputStream file_out = new FileOutputStream(file);
                   DataOutputStream data_out = new DataOutputStream(file_out);
                   if(gridInfoFile[0].equalsIgnoreCase("1") || gridInfoFile[0].equalsIgnoreCase("1.0")){
                        intGrid = doubleToIntArray(Grid);
              for(int i = 0; i < Grid.length; i++){
                   for(int j = 0; j < Grid[0].length; j++){
                        if(gridInfoFile[0].equalsIgnoreCase("1") || gridInfoFile[0].equalsIgnoreCase("1.0")){
                             Byte byte1, byte2;                         
                             byte1 = new Integer (intGrid[i][j] / 256).byteValue();
                             byte2 = new Integer(intGrid[i][j] - (intGrid[i][j] / 256)).byteValue();
                             data_out.write(byte2);
                             data_out.write(byte1);
                        if(gridInfoFile[0].equalsIgnoreCase("2") || gridInfoFile[0].equalsIgnoreCase("2.0")){
                             ByteArrayOutputStream byte_out = new ByteArrayOutputStream ();
                             DataOutputStream data_out2 = new DataOutputStream (byte_out);
                             data_out2.writeFloat(Grid[i][j].floatValue());
                             byte[] bArray = byte_out.toByteArray();
                             data_out.write(bArray[3]);
                             data_out.write(bArray[2]);
                             data_out.write(bArray[1]);
                             data_out.write(bArray[0]);
              }//fin for
              data_out.close();
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
    I had already tried data_out.writeFloat, write, writeInt, etc without any success.
    If someone knows the answer , please let me know, will appreciate that. Thank you for your help
    magnasound

    Since you are using DataOutputStream, why not use some of its more helpful methods, like writeInt?

Maybe you are looking for

  • Signal has gotten progressively worse

    I have been with Verizon a little over a year now and from what I can say, the signal inside of my house has gotten worse since last year. When I signed up I had steady 4G LTE signal indoors. Now it's a guessing game with every kind of signal. Every

  • Can HP ENVY 23-d030 be upgraded to i7-3770s

    Although according to the specifications, the HP ENVY 23-d003 can't be upgraded to a i7-3770s processor, the HP ENVY 23-d010a uses the same motherboard and is sold with the i7-3770s processor as standard. Since both use the same motherboard, the i7-3

  • In the Program Panel, when I click the Spacebar (i.e., "Play"), the image does not advance.

    In the Program Panel, when I click the Spacebar (i.e., "Play"), the image does not advance. When I click "Play" again (i.e., "Stop"), the still image confirms that we have moved on. Please, What must I do so that when I click the Spacebar (i.e., "Pla

  • What is the best way to manage multiple ipods using the same itunes?

    Hi Everyone i am trying to manage three different ipods through the one Itunes, all with very different tastes, not sure if I am doing it the best or easiest way so does anybody have a simple solution on what you're supposed to do, to keep it all sim

  • Hard mathematics/as3 question.

    Hi all; I've made a 3D spherical gallery that builts itself solely by the number of pictures it has to contain, and spreads the photos even on the 3D surface. basicaly the final goal is to import an XML and convert it to array that will fill the sphe