aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes where does BufferedImage save files? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "where does BufferedImage save files?" Watch "where does BufferedImage save files?" New topic
Author

where does BufferedImage save files?

Bobby Marvikuan
Ranch Hand

Joined: Mar 14, 2012
Posts: 54
Hello. I am interested where does the bufferedImage save files
for ex.

So where will it save my file???I searched in my workspace there is no this file that I currently tried to save.
Bobby Marvikuan
Ranch Hand

Joined: Mar 14, 2012
Posts: 54
Bobby Marvikuan wrote:Hello. I am interested where does the bufferedImage save files
for ex.

So where will it save my file???I searched in my workspace there is no this file that I currently tried to save.

Oh I am break down! I am very stupid I forgot a dot there
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4522
    
    5

You need to get your concepts clear. BufferedImage doesn't 'save files' nor does anything in your code imply that it might.

ImageIO#write(...) is what saves the file in your code.


luck, db
There are no new questions, but there may be new answers.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
... and, of course, you should never do this:

} catch (IOException i) {
}

You simply must handle I/O exceptions properly.
Bobby Marvikuan
Ranch Hand

Joined: Mar 14, 2012
Posts: 54
Darryl Burke wrote:You need to get your concepts clear. BufferedImage doesn't 'save files' nor does anything in your code imply that it might.

ImageIO#write(...) is what saves the file in your code.

Sorry I did not actually get your point you are saying that nothing in my code saves the image but then saying like ImgaeIO saving... So, I am confused
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18110
    
    8

Darryl Burke wrote:ImageIO#write(...) is what saves the file in your code.

Bobby Marvikuan wrote:Sorry I did not actually get your point you are saying that nothing in my code saves the image


So: Darryl told you what part of your code saved the file. And then you interpreted that plain statement as if it said that nothing saved the file. I suggest you should spend a few more seconds reading before posting such things.
Bobby Marvikuan
Ranch Hand

Joined: Mar 14, 2012
Posts: 54
Paul Clapham wrote:
Darryl Burke wrote:ImageIO#write(...) is what saves the file in your code.

Bobby Marvikuan wrote:Sorry I did not actually get your point you are saying that nothing in my code saves the image


So: Darryl told you what part of your code saved the file. And then you interpreted that plain statement as if it said that nothing saved the file. I suggest you should spend a few more seconds reading before posting such things.


I am not getting what does bufferedImage do if it does not save why do we need it??? and
The BufferedImage subclass describes an Image with an accessible buffer of image data.
sentence does not tell me anything oh god I hate java
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where does BufferedImage save files?
 
Similar Threads
converting from jpg to png problem
converting problem from jpg to png.
Save Image into different domain
Writing Image onto a WordDoc
Convert image to byte[] and viceversa