I have an image saved on Firebase Storage. How can I assign this URL of the image file to a File?
Is there some way to do it as:
File file = File(URL);
I've also tried using http, but results in an error : 'FileSystemException was thrown resolving an image codec: Cannot open file'
final http.Response responseData = await http.get(url);
Uint8List uint8list = responseData.bodyBytes;
File file = File.fromRawPath(uint8list);
Using Uint8list has valid data, as seen when using widget shown below, but gives an error when used with above code, File.fromRawPath(unint8list)
Image.memory(uint8list);
Tried using ImageProvider but can't get a File object from it:
ImageProvider imageProvider = NetworkImage(url);