Jump to content

Recommended Posts

Posted

I'm currently having an issue with some IO. I have this line:

 

File skin = new File(".dlskins" + File.separator + username + ".png");
BufferedImage skinBR = ImageIO.read(skin);

 

Whenever I run this, it always gives a IO error:

 

2013-07-23 13:59:13 [iNFO] [sTDERR] javax.imageio.IIOException: Can't read input file!
2013-07-23 13:59:13 [iNFO] [sTDERR] 	at javax.imageio.ImageIO.read(ImageIO.java:1301)
2013-07-23 13:59:13 [iNFO] [sTDERR] 	at kovu.teamstats.gui.GuiTeamInfoIngame.getCroppedFacialImage(GuiTeamInfoIngame.java:106)

 

I have checked the directory, (both in my MCP folder and my actual .minecraft folder), and they exist in both locations. What is the problem here? There's clearly an issue with the File object, but I'm not sure how to rectify the issue.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.