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
Post a Comment