- Welcome, Guest. Please Login or Register
MindFusion  
  Now beta testing first versions of our Scheduler and Virtual Keyboard components for HTML & JavaScript.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Exporting diagram as Image file leads to Out of Memory Error
Read 50 times

Gaurav Dubey   Offline
YaBB Newbies
*
Posts: 6
I Love MindFusion!


   
     
 
Exporting diagram as Image file leads to Out of Memory Error
Oct 27th, 2017 at 2:25pm
 
We have requirement of exporting Diagram to Image file(jpeg,png and gif), However doing this cause out of memory exception.

Reason could be image have high resolutions(22348x4282) pixels.

I am using diagram.createImage( BufferedImage.TYPE_INT_RGB) method to create image and writing it using ImageIO.write api.

Is there any better way to do the same to overcome out ot memory error while writing image in file?
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1253
Gender: male
tech.support


   
     
 
Re: Exporting diagram as Image file leads to Out of Memory Error
Reply #1 - Oct 27th, 2017 at 2:49pm
 
Is createImage itself throwing memory exception or ImageIO.write?
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print