mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Remove incorrect TODOs
PiperOrigin-RevId: 352552961
This commit is contained in:
parent
dc1842efb9
commit
60f000c8b1
2 changed files with 0 additions and 3 deletions
|
|
@ -2045,8 +2045,6 @@ public final class Util {
|
|||
|
||||
/** Returns a data URI with the specified MIME type and data. */
|
||||
public static Uri getDataUriForString(String mimeType, String data) {
|
||||
// TODO(internal: b/169937045): For now we don't pass the URL_SAFE flag as DataSchemeDataSource
|
||||
// doesn't decode using it.
|
||||
return Uri.parse(
|
||||
"data:" + mimeType + ";base64," + Base64.encodeToString(data.getBytes(), Base64.NO_WRAP));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ public final class DataSchemeDataSource extends BaseDataSource {
|
|||
String dataString = uriParts[1];
|
||||
if (uriParts[0].contains(";base64")) {
|
||||
try {
|
||||
// TODO(internal: b/169937045): Consider passing Base64.URL_SAFE flag.
|
||||
data = Base64.decode(dataString, /* flags= */ Base64.DEFAULT);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new ParserException("Error while parsing Base64 encoded string: " + dataString, e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue