Out of memory when encoding file to base64

前端 未结 8 571
自闭症患者
自闭症患者 2020-11-30 03:46

Using Base64 from Apache commons

public byte[] encode(File file) throws FileNotFoundException, IOException {
        byte[] encoded;
        try (FileInputSt         


        
8条回答
  •  迷失自我
    2020-11-30 03:55

    In Manifest in applcation tag write following android:largeHeap="true"

    It worked for me

提交回复
热议问题