`

Unsupported Image Type

    博客分类:
  • java
 
阅读更多

今天cms系统中出现上传文件失败,报了这样的一个错:

javax.imageio.IIOException: Unsupported Image Type
	at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
	at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
	at javax.imageio.ImageIO.read(Unknown Source)
	at javax.imageio.ImageIO.read(Unknown Source)
	at com.alipay.ecmng.impl.UploadFileManagerImpl.saveFile(UploadFileManagerImpl.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.alipay.sofa.service.binding.JVMBindingAdapter$JVMServiceInvoker.doInvoke(JVMBindingAdapter.java:69)
	at com.alipay.sofa.service.model.ServiceProxy.invoke(ServiceProxy.java:35)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy46.saveFile(Unknown Source)
	at com.alipay.ecmng.web.home.FileJsonController.doPost(FileJsonController.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)

 解决办法:把图片的模式用ps从CMYK转为RGB即可.

分享到:
评论

相关推荐

    EFI shell命令工具IA32和X64版本

    在EFI shell命令下flash uefi bios 以及运行一些.efi的工具 可以通过U盘进去efi shell U盘的格式FAT类型

    ImageMagick图片批量处理

    -compress type type of pixel compression when writing the image -define format:option define one or more image format options -delay value display the next image after pausing -density geometry ...

    更改了计算机名称后ArcGIS Server发布的服务预览不出来了怎么办!

    更改了计算机名称后ArcGIS Server发布的服务预览不出来了。 一、确定问题 1、打开ArcCatalog,停止地图服务。...2、修改地图服务的输出路径(output directory)为None,此时Supported Image Return Type显示为MIME。

    Qemu-1.0.1 for windows

    'disk_image' is a raw hard disk image for IDE hard disk 0 Standard options: -h or -help display this help and exit -version display version information and exit -machine [type=]name[,prop[=value][,.....

    图片识别案例(图片素材)

    VuMark, and Cloud databases and upload your targets to the manager for visual evaluation and processing.Supported Targets The Target Manager supports target images of type Image Targets,Once you ...

    IMX323LQ-C.PDF

    The IMX323LQN-C is a diagonal 6.23 mm (Type 1/2.9) CMOS active pixel type image sensor with a square pixel array and approximately 2.12M active pixels. This chip operates with analog 2.7 V, digital ...

    Senfore_DragDrop_v4.1

    Delphi's THandle type when a HWND is passed to a function. E.g.: if (DragDetectPlus(THandle(MyControl->Handle), Point(X, Y))) { ... } * Virtual File Stream formats can only be pasted from the ...

    dlpc3435.pdf

    • MIPI DSI Interface Type 3 (only supported with DLPC3430) – 1-4 lanes, up to 470 Mbps lane speed • Pixel Data Processing: – IntelliBright™ Suite of Image Processing Algorithms – Content ...

    iOS.8.Programming.with.Swift.2nd.Edition.B00WO7FVDS

    iOS 8 has shown improved support for amazing features which were not supported in iOS 7. This explains the need for the creation of iOS 8 apps, and therefore the need to learn Swift. Here is a ...

    squashfs1.3r3.tar.gz

    7. Both big and little endian architectures are supported. Squashfs can mount filesystems created on different byte order machines. 2. mksquashfs ------------- As squashfs is a read-only ...

    qemu-0.13.0(编译过全处理器支持)

    to get the list of supported cards use -soundhw all to enable all of them -usb enable the USB driver (will be the default soon) -usbdevice name add the host or guest USB device 'name' -device driver...

    Getway Raid Recovery 陈新汉化版

    * User-defined Mode: "User-defined Mode" is the powerful complementarity to the RAID Type which can’t be supported by the system. User can set up the RAID Type, the serial number on every strip, thus...

    PDF_To_JPG[无水印]

    Supprt True type,type 1, type 0 and CID font. Use PDFtoJPG Converter Here is a screen shot of PDFtoJPG ADD:You can use Add to add PDF file to the list, Click Add button, You will be prompt to ...

    squashfs2.2-r2.tar.gz

    3. Files up to 2^32 bytes are supported. Filesystems can be up to 2^32 bytes. 4. Inode and directory data are highly compacted, and packed on byte boundaries. Each compressed inode is on average 8 ...

    cutEditor -最好用的在线编辑器

    CuteEditor for ASP.NET中文版是建立在Html基础之上,最简单易用、功能最强大的所见即所得Asp.net在线编辑器。... It also supports client side validation of the file size/type before uploading.

    java7帮助文档

    Accessibility Drag n Drop Input Methods Image I/O Print Service Sound Java SE API Integration Libraries IDL JDBC JNDI RMI RMI-IIOP Scripting Other Base Libraries Beans Int'l Support Input/Output...

    edid编译软件

    (18H) DPMS and Supported Feature(s): Preferred Timing Mode Display Type = R/G/B Color (19H-22H) CHROMA INFO: Red x - 0.592 Green x - 0.319 Blue x - 0.159 White x - 0.313 Red y - 0.344 Green y - 0...

    Spectral Core Full Convert Enterprise v6.11.0.1683

    Specific type lengths rules supported. Global defaults mapping for all target databases Specific options for each database engine Requirements Runs great on all Windows versions, including Windows ...

    php英文开发文档

    •Supported Protocols and Wrappers •Security•Introduction •General considerations •Installed as CGI binary •Installed as an Apache module •Filesystem Security •Database Security •Error ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - ADD: Delphi/CBuilder 10.2 Tokyo now supported. - ADD: Delphi/CBuilder 10.1 Berlin now supported. - ADD: Delphi/CBuilder 10 Seattle now supported. - ADD: Delphi/CBuilder XE8 now supported. - ADD: ...

Global site tag (gtag.js) - Google Analytics