public class AliyunHandle { public static string accessKeyId = "a1uI5xxxxxxxxxrP4H"; public static string accessKeySecret = "9JDdggMdT2cxxxxxxxxxxxxxxx5VaE9z"; public static string endpoint = "oss-cn-qingdao.aliyuncs.com"; pu
前言:字符流.字节流读取文件,下面的代码是在网上找到的一个各种文件读取方式,还算比较详细,分享给大家. public class ReadFromFile { /** * 以字节为单位读取文件,常用于读二进制文件,如图片.声音.影像等文件. * @param fileName 文件的名 */ public static void readFileByBytes(String fileName){ File file = new File(fileName); InputStream in = n