• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

where does BufferedImage save files?

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7585
176
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:(
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic