Repository: flutter
Issue: Exception: Cannot read bytes from Blob. Is it still available?
Labels: waiting for customer response,in triage

### Steps to reproduce

in flutter web, getting this error Cannot read bytes from Blob. Is it still available? at line  await file.readAsBytes();

when file size is larger than 2 GB



### Expected results

how to get file bytes in flutter web when file size is larger than 2GB 


### Actual results

small file working fine. but when access large files like 2GB it throws error

### Code sample

<details open><summary>Code sample</summary>

```dart
Example
bool isDragging = false;
  String statusMessage = 'Drop files here';
  int totalBytesProcessed = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Large File Drop Example'),
      ),
      body: Center(
        child: DropTarget(
          onDragEntered: (details) {
            setState(() {
              isDragging = true;
            });
          },
          onDragExited: (details) {
            setState(() {
              isDragging = false;
            });
          },
          onDragDone: (details) async {
            await _handleFileDrop(details);
          },
          child: Container(
            width: 400,
            height: 200,
            decoration: BoxDecoration(
              border: Border.all(
                color: isDragging ? Colors.blue : Colors.grey,
                width: 2,
              ),
            ),
            child: Center(
              child: Text(
                statusMessage,
                style: TextStyle(fontSize: 16),
                textAlign: TextAlign.center,
              ),
            ),
          ),
        ),
      ),
    );
  }

  Future<void> _handleFileDrop(DropDoneDetails dropDoneDetails) async {
    if (dropDoneDetails.files.isNotEmpty) {
      final file = dropDoneDetails.files.first;
      log('Processing file: ${file.name}');
      setState(() {
        statusMessage = 'Processing file: ${file.name}';
        totalBytesProcessed = 0;
      });

      try {
        final bytes = await file.readAsBytes();
        totalBytesProcessed = bytes.length;
        // await _processFileInChunks(file as html.File);

        setState(() {
          statusMessage =
              'File processed successfully! Total bytes: $totalBytesProcessed';
          log('File processed successfully! Total bytes: $totalBytesProcessed');
        });
      } catch (e) {
        log('Error processing file: $e');
        setState(() {
          statusMessage = 'Error processing file: $e';
        });
      }
    }
  }
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
Restarted application in 227ms.
[log] Processing file: test 2.zip
[log] Error processing file: Exception: Cannot read bytes from Blob. Is it still available?
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
/Volumes/InsomniacsAppleSSD2/flutter3.24.5/bin/flutter doctor --verbose
[!] Flutter (Channel stable, 3.24.5, on macOS 14.6.1 23G93 darwin-arm64 (Rosetta), locale en-IN)
    • Flutter version 3.24.5 on channel stable at /Volumes/InsomniacsAppleSSD2/flutter3.24.5
    ! The flutter binary is not on your path. Consider adding /Volumes/InsomniacsAppleSSD2/flutter3.24.5/bin to your path.
    ! The dart binary is not on your path. Consider adding /Volumes/InsomniacsAppleSSD2/flutter3.24.5/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (10 weeks ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)


```

</details>