2021
10-25
10-25
jedis获取redis中二进制图片转Base64方式
jedis获取redis图片转成Base64jedis存对象/***序列化**@paramobject*@return*/publicstaticbyte[]serialize(Objectobject){ObjectOutputStreamoos=null;ByteArrayOutputStreambaos=null;try{baos=newByteArrayOutputStream();oos=newObjectOutputStream(baos);oos.writeObject(object);byte[]bytes=baos.toByteArray();returnbytes...
继续阅读 >