java图片保存的问题
用java+flex做了一个拍照的小软件,在自己电脑上OK的,装到其它机器上拍照时报以下 错误。
网上都是说JSP+tomcat遇到该异常如何处理,但是未用到这些,有其他解决方案么?提点下小弟。
javax.imageio.IIOException: Can't create output stream!
INFO | jvm 1 | 2013/01/25 16:09:09 | at javax.imageio.ImageIO.write(ImageIO.java:1574)
INFO | jvm 1 | 2013/01/25 16:09:09 | at znet.web.service.PersonService.savePersonPhotoById(PersonService.java:1049)
INFO | jvm 1 | 2013/01/25 16:09:09 | at znet.web.service.pac.PersonServicePackage.savePersonPhotoById(PersonServicePackage.java:411)
INFO | jvm 1 | 2013/01/25 16:09:09 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2013/01/25 16:09:09 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | 2013/01/25 16:09:09 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2013/01/25 16:09:09 | at java.lang.reflect.Method.invoke(Method.java:601)
INFO | jvm 1 | 2013/01/25 16:09:09 | at znet.web.parse.ParseUtil.parse(ParseUtil.java:38)
INFO | jvm 1 | 2013/01/25 16:09:09 | at znet.web.parse.ParseFlexData.parse(ParseFlexData.java:48)
INFO | jvm 1 | 2013/01/25 16:09:09 | at znet.web.parse.ParseData.parseCommand(ParseData.java:16)
INFO | jvm 1 | 2013/01/25 16:09:09 | at znet.web.server.ClientThread.run(ClientThread.java:30)
INFO | jvm 1 | 2013/01/25 16:09:09 | Caused by: javax.imageio.
IIOException: Can't create cache file!
INFO | jvm 1 | 2013/01/25 16:09:09 | at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:423)
INFO | jvm 1 | 2013/01/25 16:09:09 | at javax.imageio.ImageIO.write(ImageIO.java:1572)
INFO | jvm 1 | 2013/01/25 16:09:09 | ... 10 more
INFO | jvm 1 | 2013/01/25 16:09:09 | Caused by:
java.io.IOException: 系统找不到指定的路径。
INFO | jvm 1 | 2013/01/25 16:09:09 | at java.io.WinNTFileSystem.createFileExclusively(Native Method)
INFO | jvm 1 | 2013/01/25 16:09:09 | at java.io.File.createTempFile(File.java:1879)
INFO | jvm 1 | 2013/01/25 16:09:09 | at javax.imageio.stream.FileCacheImageOutputStream.<init>(FileCacheImageOutputStream.java:86)
INFO &nb