Best way to create an image file

Hi,
I am drawing a huge image by using java 2d .to store that image into a image file i am using the following code...
BufferedImage bf=new BufferedImage(diagramHandle.getWidth(),diagramHandle.getHeight(),BufferedImage.SCALE_SMOOTH);
               Graphics2D gd=bf.createGraphics();
               diagramHandle.paintComponent(gd);--> this class will render the image and store into bufferred image
               ImageIO.write(bf, "PNG", file);
for the small images it is working properly. but when i am trying to generate bigger images more than 1240 width and 40000 height it is throwing out of memory error. with out increasing the heap size is there any way to store the images better way..can i directly use the gd object to draw the image..?
Please help me out

thanks for your reply. if i changed the type also it is throwing the out of memory exception ..
at java.awt.image.DataBufferByte.<init>(Unknown Source)
     at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
     at java.awt.image.BufferedImage.<init>(Unknown Source)
</code>
it is throwing the error while constructing the bufferedimage with the specified width and height.is there any other way around to create an image file.please help me out.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • WHAT IS THE BEST WAY TO CREATE AN XSD FILE (TO BE USED BY SOAP ADAPTER)

    Dear friends
    I have a simple scenario.
    OUTBOUND DATA  -->  SOAP ADAPTER  --> ( XI )  -->  RFC ADAPTER  --> INBOUND DATA
    The XML file that I got from mapping area of IR (Design) is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_NAME_SOURCE xmlns:ns0="http://test3.com">
       <FIRSTNAME>DAVE</FIRSTNAME>
       <LASTNAME>SMITH</LASTNAME>
    </ns0:MT_NAME_SOURCE>
    If you notice, there are only 2 fields.
    I need to create an XSD file and import it as an external object, which I can use for SOAP Adapter.
    Which is the best way to create it.
    Also, I need to know if there is any step by step of sending a message from XML SPY. I have downloaded this software, but am not able to undertand how to use this.
    Hope to hear from any experts on this forum.
    Thanks in advance
    Ram

    Hi Ram,
    See the below blog..
    It shows how to send SOAP message using XML Spy.
    It also shows how to generate wsdl.
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Regards,
    Sumit

  • What is the best way to create this image?

    Hi, I'm using Illustrator CS5 and I'm sure there is a pretty easy way to create this image with some copy/repeat steps... However I can't seem to figure it out.
    Any suggestions?
    Thanks!

    Ace,
    You may:
    1) Create the circle,
    2) Create  a triangle from a square by deleting the bottom right Anchor Point (Delete Anchor Point Tool),
    3) Place the triangle for the cutout just to the left of the top of the circle (where the angles fit),
    4) Rotate 8 copies round the centre of the circle (you may use the Effect route but you will need the real paths),
    5) Select the trangles and the circle and apply Minus Front (or whatever the Pathfinder command is called in your version.

  • What's the best way to create disk images?

    of 300GB  hard drives or partitions?
    Disk utility is failing for me with an input/output error.
    A typical example:
    I have a new HFS+ 500GB external FW 800 drive that I am using a destination.
    I will boot from my original 'install' DVD and then open up disk utility to start the disk image creation.
    Note: my source is my "Macintosh HD" partition that is around 300GB.
    Everything looks like it is running well, then a couple hours into it, it fails... something like:
    "cannot create img.. blah input/output error".
    Note: Verify Disk shows no errors on the source.
    One guess is that the img creation process is failing after I leave the computer and perhaps my computer falls asleep. I tried setting the 'Energy Saver' prefs in the systems prefs, but of course, since I'm running off the install DVD, I wasn't able to get into the prefs.
    Anyway, ultimately, I need to create periodic disk images of my macs.. so what are people using to do this?
    Thanks for the comments!
    Donovan

    Eric, Carbon Copy Cloner is what I was leaning towards. The owner says his guess is that there are bad blocks on my HD, and since Disk Utility is block based, that it is failing where CCC is file based, and will just skip files that are corrupted or that it can't copy.
    I guess I'll roll with that for now.. but it would be nice if the Disk Utility logs spit out a more descriptive log.. instead of "could not create disk image, input/output error".
    Thanks!
    Donovan

  • Best way to create SVG file from drawing application?

    I am developing a drawing application that allow the users to draw and edit static two dimensional images such as Rectangles, Ellipses and Text. I have a superclass SVGShape that contains all the common features of a shape such as x1, x2, color etc. I then have SVGRectangle as a subclass of SVGShape.
    I want to know what would be the best way to create an SVG file from this? An idea I have at the minute is to have an abstract method getSVG() in the SVGShape class, and then implement the method in the subclasses. I will then create a new class called SVGManager which iterates through the list of shapes (Btw I'm using MVC, my shapes are stored in a Collection) and uses the getSVG() mehtod in each shape to build up a SVG file.
    What do you think of this? Any better ideas?
    Thanks guys

    I used a visitor for this in a similar project, so that when the svg library is used in a applet or browser and the writing functionality isn't required, it may be omitted from the bundle.
    Pete

  • Creating .mem.image files

    Can anyone briefly give the procedure to compile the C code (written for a custom application using OpenSPARC T1) to create the .mem.image files??
    I have sun studio 12.2 on CentOS I am encountering errors like :
    some command under /usr/ccs/bin/ld is missing
    I am guessing that the ccs folder isnt there as a part of CentOS.If that is the case then which operating system (apart from OpenSolaris??) can be used for the .mem.image compilation???
    Kindly reply,thanks in advance.

              but if you wanted to:
              http://www.acknowledge.co.uk/snippets/java/code_examples/servlets/writetoate
              mporaryfile.html
              "Bob Lee" <[email protected]> wrote in message
              news:[email protected]..
              > If you're dynamically creating it, there may be no need to write it to a
              > file at all. You could just dynamically generate it and send it straight
              to
              > the client. Then you wouldn't have to worry about the cleanup either.
              >
              > Bob
              >
              >
              > "Mike Voltin" <[email protected]> wrote in message
              > news:[email protected]..
              > > I am dynamically creating an image file from within a servlet based
              > > upon user selections. Where is the best location to save these jpg's.
              > > I will have an img tag, <img src=theLocationAndNameOfTheImageFile>,
              > > in the HTML that I am generating.
              > >
              > > Also, what's the best way to remove these image files so that they are
              > > cleaned up properly.
              > >
              > > Thanks.
              > >
              > > Mike V.
              >
              >
              

  • Best way to create an html from application

    I need connect to an Oracle database and generate a static report from the result Query.
    Do you know what can be the best way to create this html file ?
    There is exists some html library to use?
    Thanks in advance

    you don't need a library. html is verry easy to use. you only have to write text to a file with html-tags.
    hope it helps

  • Creating siebel image file for Siebel Patch 7.8.2.16 to upgrade from Siebel 7.8.2.14

    I new to installing Siebel Patch 7.8.2.16 for Microsoft Windows 2003 Servers, Mobile Web Client. We are currently running Siebel version : 7.8.2.14 on 7.8.2.14 SIA [19251] ENU patch applied. We need to install upgrade to Siebel 7.8.2.16 to install QF0E26 for an issue with MVG popup. What is the best practice to create Siebel image file from Siebel CD which has multiple JAR files on CD media for Siebel CD Media pack sent to me. Let me know if you need additional details.  Thanks JollyRoger

    Hello Jolly,
    Thanks for using Oracle communities.
    You need to download installables for 7.8.2.16 SIA. Follow below instructions to download:
    1) Login to My oracle support through your credentials
    2) Go to tab 'Patches & Updates'
    3) Enter patch number as '11687049' in 'Patch Name or Number' field and click on search.
    4) Download patch for Windows.
    Once you download, you need to use Image Creator Utility to generate an Installation image.
    Please follow below online bookshelf link on how to create Image.
    http://docs.oracle.com/cd/B31104_02/books/SiebInstWIN/SiebInstCOM_Image5.html#wp1594731
    I hope it helps.
    Best Regards,
    Chetan

  • What's the best way to create a panorama from a series of images?

    What's the best way to create a panorama from a series of images?

    This is PhotoMerge result
    This is WLPG
    This is a manual merge
    Before anyone comments on the poor image quality, I know. Its not my photography.
    The beach huts were in an arc which doesn't help.
    You can see that the photomerged image has not 'understood' the image and has bad destortion on the doors of some huts. The blend lines are also visible

  • What is the best way to create Aperture book from Pages '09 document?

    What is the best way to create Aperture book from Pages '09 document?

    There is no way to import pages documents to Aperture and convert them to an Aperture book. Aperture books can only be created by manually adding images and text to the pages of a book, and using the layout of the predefined templates.
    The best you could do, would be to print your pages document to pdf and import the resulting pdf file into Aperture as a new project. This will create one image for each page. Then select the page images all at once and  create a new book. Select a theme with fullsize page images, like "picture Book", and then add the images of the pages to the empty pages of the book.
    But probably would you get a much better quality and layout, when you recreate your pages document in Aperture, by starting with an empty book and copying and pasting the text from your Pages document. But don't paste the photos from the document - try to use the originals of those photos.

  • Best way to extract all images from Messages?

    My iPad freaked out earlier today and unfortunately I had to do a recovery and restore (from iCloud backup).  I say unfortunately because I was 90% certain I was not backing up photos/video (and there was no way to check before doing the restore).  And indeed I had photo/video backup turned off.
    I'm mostly back to normal now, except for all the lost photos/videos.  I've gone through some of Messages to Save ones I sent there. 
    What is the best way to extract all images from past Messages so I don't have to tediously load earlier messages?   I understand there are some programs that allow one to go through a local backup and go through messages.  But for this I suppose I'd first need to make a local backup of everything, no?  Are those programs able to extract just images I've sent or do they grab everything (i.e. images others have sent me?)
    Related, before I did the initial restore could I have easily retrieved the photos/images on the device through some third-party solution?
    Lastly, and semi-off topic.. What determines the image name for an image in Messages?   For example, I Copied a photo someone sent me via Messages and Pasted it three times back to her (all at the same time).   The image filenames are IMG_6447.jpg,  IMG_4820.jpg, IMG_0291.jpg.  

    Thanks Kirby.  I utilize Aperture 3 by reference instead of a compiled library.  So I have individual folder/projects stored on my laptop.  By exporting as a library, does Aperture bring these folders and related images "with it"?
    What I don't want to lose is any post processing I do in the field which creates separate versions and/or .PSD files.
    Thanks for your continued assistance.
    Chris

  • Best way to "transfer" Aperture images from MacBook Pro to iMac?

    I recently purchased a MacBook Pro 15" to import and edit images (within Aperture and CS6 as an external editor) when I'm out in the field shooting.
    I prefer to have all my images in one location and thus desire to copy eveything to my home base iMac when I return home.
    What is the best way to "transfer" those images so that my homebase iMac Aperture Library can recognize the new masters and edited versions?  Complicating this is the desire to "stamp" each image with a metadata preset upon import that I can do either at the laptop import or upon transfer to the iMac.
    I know just enough to be dangerous but clearly there is an optimal way to consolidate and manage images when using two computers.
    Welcome any thoughts from fellow photographers!
    Chris

    Thanks Kirby.  I utilize Aperture 3 by reference instead of a compiled library.  So I have individual folder/projects stored on my laptop.  By exporting as a library, does Aperture bring these folders and related images "with it"?
    What I don't want to lose is any post processing I do in the field which creates separate versions and/or .PSD files.
    Thanks for your continued assistance.
    Chris

  • Is there a way to create an MMS FILE

    HEY ALL MACHEADS,
    just want to know if there is way to create an MMS file on a mac with quicktime..or convert a quicktime to be sent via MMS ( from a blackberry say...)
    I think its called viral video...??? any help would be great...
    orlando f

    If you wanted to send a video as an mms from a mobile phone, the best option for exporting would be 3G in the quicktime export menu ( File > Export and it's in the drop down list).
    Keep it short and small and you shouldn't have any probs. There are some miserly operators out there who block MMSs bigger than 100K

  • What is the best way to keep my personal files stored in iCloud separate from my work-related files?

    What is the best way to keep my personal files stored in iCloud separate from my work-related files? It seems that I'm not allowed to link my iPad mini and my work iMac using two different accounts, so I'm wondering how to make my single personal account work for both, while keeping personal vs work files reasonably separated.
    Thanks for any suggestions.

    Is it possible for you to upgrade your account to iCloud Drive? That would mean, all Macs upgraded to Yosemite, and all mobile devices to iOS8?
    See:  iCloud Drive FAQ and iCloud: About using iWork for iOS and iCloud
    In iCloud Drive you could create two separate custom folders, one for work documents and one for private documents and organize your documents there.  Don't use the app specific folders (Keynote, Pages, Numbers, ...) , because you can only create one level of folders inside these folders.

  • What is the best way to create a photo gallery?

    Hi,
    I want to create a photo gallery in Dreamweaver without using any pre-built "web gallery" function. What's the best way to swap the images when I click the "next" button? Do I create a new Dreamweaver page for each photograph? Is there a more efficient way to do it than that?
    Thanks,
    Gordon

    Is there a more efficient way to do it than that?
    Most definitely.  With scripts.
    57+ Free Galleries, Slideshows & Lightbox solutions:
    http://www.1stwebdesigner.com/css/57-free-image-gallery-slideshow-and-lightbox-solutions/
    20 Best jQuery Slideshow Scripts
    http://graphicalerts.com/20-best-jquery-slideshow-image-photo-gallery-plugins/
    If you're a photographer or managing a large collection of images, look at JAlbum.
    Download the software.  Drag & Drop your images/folder of images into the work space.  Hit create album.  In a few seconds, jAlbum generates your HTML pages and thumbnail images for you.  A real time saver with plenty of customizable skins to choose from.
    Download: http://jalbum.net/software;jsessionid=qkhdjzieqjtg1rz4x2anjlk5d
    Skins:  http://jalbum.net/skins
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for

  • RE:me32k

    Hi, I got a requirement like this I will enter the agreemet no in me32k and hit enter.again i will select a line item in the table control and from the menu bar i will select price simulation,it takes me to another screen having a table control which

  • How can I calculate the waveform integral in a defined time interval?

    Hi: I need your help. How can I calculate the waveform integral in a defined time interval? For example: from "0" to "2pi"?! Thanks.

  • Adobe pdf files not saving

    Since transfering my program to Win8, I have been unable to get my Adobe pdf documents to save. They just disappear after naming them. How can I fix this?

  • Regarding GR/IR Account

    hi can u please explain about GR/IR Account and how to effected in this account advance thanks pooja

  • C-Project Question

    Hello All, I have a question related to C-Projects. I read that we create Project Roles and assign Business Partners to the Project Roles. Where do we define the capacity for the project roles or business partners, as to how much time they can work i