Convert byte[] to Base64 string for data URI

后端 未结 5 1562
名媛妹妹
名媛妹妹 2020-12-02 16:55

I know this has probably been asked 10000 times, however, I can\'t seem to find a straight answer to the question.

I have a LOB stored in my db that represents an i

5条回答
  •  情书的邮戳
    2020-12-02 17:45

    According to the official documentation Base64.encodeBase64URLSafeString(byte[] binaryData) should be what you're looking for.

    Also mime type for JPG is image/jpeg.

提交回复
热议问题