java - Saving image on a hard drive with no memory left -


i need know exception raised when save image on drive have no empty space hold it, can notify user memory full. i'm saving images way:

try{     thumbpath ="c:/dlapp/media/disegni/thumbnails/"+jlabel_codice.gettext()+".png";      file outputfile = new file(thumbpath);     imageio.write(bi, "png", outputfile); } catch (ioexception ex) {         logger.getlogger(paneldialognuovooperatore.class.getname()).log(level.severe, null, ex); } catch (nullpointerexception e){         thumbpath = null; } 

any suggestion? thnx in advance replies


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -