`

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(Extensible Firmware Interface)是一种现代固件接口标准,它替代了传统的BIOS(基本输入输出系统),提供了更高效、更灵活的操作系统启动和硬件管理方式。EFI Shell是EFI环境中的一种命令行工具,用于执行各种...

    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 ...

    Base64编码与图片互转

    Base64编码与图片互转

    CImg Reference

    - `CImg<T>` is a template class that represents a single image, where `T` is the pixel data type (e.g., `unsigned char`, `float`). - It supports different pixel formats such as grayscale, RGB, RGBA, ...

    Tray Java托盘代码实例

    - `displayMessage(String title, String message, MessageType type)`:在托盘图标上显示通知消息。 5. **事件处理**: `TrayIcon`提供了多种监听器,如`MouseListener`, `MouseMotionListener`, `...

    Java下类似QQ截图的实现,支持热键,系统托盘

    BufferedImage image = new BufferedImage(bounds.width, bounds.height, BufferedImage.TYPE_INT_ARGB); Graphics2D g = image.createGraphics(); g.drawRenderedImage(device.getDefaultConfiguration()....

    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 ...

    托盘闪动消息提醒(有声音+源码)-JAVA版

    首先,你需要检查当前操作系统是否支持系统托盘,可以使用`java.awt.SystemTray`类的静态方法`isSupported()`进行判断。如果支持,你可以获取系统托盘对象`java.awt.SystemTray tray = SystemTray.getSystemTray()`...

    TrayIcon系统图标闪动

    - 在Java中,可以调用`TrayIcon.displayMessage()`方法,设置消息类型为` TrayIcon.MessageType.INFO`或`TrayIcon.MessageType.WARNING`,配合`TrayIcon.setToolTip()`设置提示信息,来达到闪动效果。 - .NET ...

    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...

    JAVA托盘系统--附源码.rar

    trayIcon.addActionListener(e -> trayIcon.displayMessage("提示", "你点击了托盘图标", TrayIcon.MessageType.INFO)); // 添加到系统托盘 try { tray.add(trayIcon); } catch (AWTException e) { e....

    JAVA实现系统托盘

    - 构造器`TrayIcon(Image image, String tooltip, PopupMenu popup)`:创建一个托盘图标。 - `setImageAutoSize(boolean b)`:设置是否自动调整图像大小。 - `setToolTip(String tip)`:设置工具提示文本。 - `...

    V4L2 API及数据结构

    /* supported video standards */ __u32 flags; /* input flags */ __u32 reserved; /* reserved for future use */ }; ``` ##### 4. `struct v4l2_standard` 此结构体用于描述视频制式(如 PAL 或 NTSC),可...

Global site tag (gtag.js) - Google Analytics