We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb4dfd commit 12127e6Copy full SHA for 12127e6
firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Part.kt
@@ -49,7 +49,7 @@ public class ImagePart(public val image: Bitmap) : Part {
49
50
internal fun toInlineDataPart() =
51
InlineDataPart(
52
- android.util.Base64.decode(encodeBitmapToBase64Png(image), BASE_64_FLAGS),
+ android.util.Base64.decode(encodeBitmapToBase64Jpeg(image), BASE_64_FLAGS),
53
"image/jpeg"
54
)
55
}
0 commit comments