• 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

Java or IDE causing curropted Images

 
Greenhorn
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey you guys I need help. Ive been trying to access an image through java on a IDE causing weird complications of being unable to access when its allowed to be used. Then I go back to find the image fully black. All I'm trying to do is read the image which is a .png but I have a gut feeling it may be eclipse fault but no similar results are online so I am asking you guys if reading a file can corrupt it done the wrong way. (also getting it from resource folder)

code here:



error:

 
Munto Bunes
Greenhorn
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
noticed stuipid mistake (error/corruption still without it) just experimenting and forgot to change it back sending it on here
 
Munto Bunes
Greenhorn
Posts: 16
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey you guys I need help. Ive been trying to access an image through java on a IDE causing weird complications of being unable to access when its allowed to be used. Then I go back to find the image fully black. All I'm trying to do is read the image which is a .png but I have a gut feeling it may be eclipse fault but no similar results are online so I am asking you guys if reading a file can corrupt it done the wrong way. (also getting it from resource folder)

code here:



error:

 
Get me the mayor's office! I need to tell her about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic