Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where does BufferedImage save files?

 
Bobby Marvikuan
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Moores
Bartender
Posts: 2795
38
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... and, of course, you should never do this:

} catch (IOException i) {
}

You simply must handle I/O exceptions properly.
 
Bobby Marvikuan
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic