Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

where does BufferedImage save files?  RSS feed

 
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
 
Bartender
Posts: 5167
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.
 
Saloon Keeper
Posts: 4707
117
  • 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
 
Sheriff
Posts: 23649
49
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!