Skip to content

Share from file path #36

Description

@Elf80lvl

Can I share an image which is stored as file with a path? When I try to do so I get an error:
Unable to load asset: /data/user/0/com.example.qr_code_scanner/cache/image.png

final ByteData bytes = await rootBundle.load(file.path); await WcFlutterShare.share( sharePopupTitle: 'share', fileName: 'share.png', mimeType: 'image/png', bytesOfFile: bytes.buffer.asUint8List());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions