Skip to content

Java读取Resource目录下的文件内容 #119

Description

@Draymonders
InputStream imageBase64InputStream = getClass().getResourceAsStream("/imageBase64");
String imageBase64 = IOUtils.toString(imageBase64InputStream, StandardCharsets.UTF_8);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    javaJava相关,Collection,JVM,Spring

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions