Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this is working fine with uploading image files. but for other files like .mp4 or any pdf it gives the image codec error #1

Open
abdullahwaheed12 opened this issue Mar 31, 2023 · 0 comments

Comments

@abdullahwaheed12
Copy link

════════ Exception caught by image resource service ════════════════════════════
The following _Exception was thrown resolving an image codec:
Exception: Invalid image data

When the exception was thrown, this was the stack
#0 _futurize (dart:ui/painting.dart:6408:5)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:6265:12)
#2 instantiateImageCodecFromBuffer (dart:ui/painting.dart:2150:60)
#3 PaintingBinding.instantiateImageCodecFromBuffer
package:flutter/…/painting/binding.dart:153
#4 FileImage._loadAsync
package:flutter/…/painting/image_provider.dart:1008

Path: /data/user/0/com.example.flutter_application_1/cache/2ab44901-a77a-4a7f-ae5f-783883d4f016/1000000018.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant