我正在创建一个图像处理应用程序,因此首先使用android平台api来处理位图广告,然后将其发送到flutter。我正在使用下面的代码将位图转换为byte[]Bitmapbitmap=BitmapFactory.decodeFile(uri.getPath());ByteBufferallocate=ByteBuffer.allocate(bitmap.getByteCount());bitmap.copyPixelsToBuffer(allocate);byte[]array=allocate.array();然后使用MethodChannel作为Uint8List将其发送到flut