恶心的jdcob--Could not initialize class com jacob com ComThread

时间:2025-05-16 06:59:35
文件流转换为base64码 和 base64码转换为文件流

暮霭层层楚天阔: 靓仔, base64不转io实体文件直接转成byte[],返回 老师只能返回半张图片 怎么搞呀 [code=java] String base64 = "文件base64编码"; byte[] bytes = new byte[0]; try { bytes = new BASE64Decoder().decodeBuffer(base64); } catch (IOException e) { (); } byte[] buff = new byte[1024]; ByteArrayInputStream in = new ByteArrayInputStream(bytes); OutputStream outputStream = new BufferedOutputStream(()); int n; while ((n = (buff)) != -1) { (buff, 0, n); (); } [/code]