今天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(Extensible Firmware Interface)是一种现代固件接口标准,它替代了传统的BIOS(基本输入输出系统),提供了更高效、更灵活的操作系统启动和硬件管理方式。EFI Shell是EFI环境中的一种命令行工具,用于执行各种...
-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发布的服务预览不出来了。 一、确定问题 1、打开ArcCatalog,停止地图服务。...2、修改地图服务的输出路径(output directory)为None,此时Supported Image Return Type显示为MIME。
'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 ...
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 ...
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 ...
• 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编码与图片互转
- `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, ...
- `displayMessage(String title, String message, MessageType type)`:在托盘图标上显示通知消息。 5. **事件处理**: `TrayIcon`提供了多种监听器,如`MouseListener`, `MouseMotionListener`, `...
BufferedImage image = new BufferedImage(bounds.width, bounds.height, BufferedImage.TYPE_INT_ARGB); Graphics2D g = image.createGraphics(); g.drawRenderedImage(device.getDefaultConfiguration()....
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.awt.SystemTray`类的静态方法`isSupported()`进行判断。如果支持,你可以获取系统托盘对象`java.awt.SystemTray tray = SystemTray.getSystemTray()`...
- 在Java中,可以调用`TrayIcon.displayMessage()`方法,设置消息类型为` TrayIcon.MessageType.INFO`或`TrayIcon.MessageType.WARNING`,配合`TrayIcon.setToolTip()`设置提示信息,来达到闪动效果。 - .NET ...
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 ...
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...
trayIcon.addActionListener(e -> trayIcon.displayMessage("提示", "你点击了托盘图标", TrayIcon.MessageType.INFO)); // 添加到系统托盘 try { tray.add(trayIcon); } catch (AWTException e) { e....
- 构造器`TrayIcon(Image image, String tooltip, PopupMenu popup)`:创建一个托盘图标。 - `setImageAutoSize(boolean b)`:设置是否自动调整图像大小。 - `setToolTip(String tip)`:设置工具提示文本。 - `...
/* supported video standards */ __u32 flags; /* input flags */ __u32 reserved; /* reserved for future use */ }; ``` ##### 4. `struct v4l2_standard` 此结构体用于描述视频制式(如 PAL 或 NTSC),可...