Not able to convert Network images to Uint8List file - flutter

I want to first download network image then convert it into Uint8List.
I have used image_downloader package but its not working. Any fix for that?

Related

Flutter pdf to ppt convertor

Is there any way to directly convert pdf file to ppt in flutter?
Anybody can suggest me some package for this
I have searched for such package but I haven't got anyone
You could go with this 2 ways:
Directly PPT Conversion: You could give this power_file_view package a check where you could pass in a pdf from the app or from the network as a parameter in it and then convert it to ppt.
Convert File to PDF then PPT: Check out the syncfusion_flutter_pdf: ^20.4.49 in this, you could create PDF Files and then Convert it to PPT using above Package.
Choose any approaches that suit your need :)

How to render mp4 file from blob url?

I'm using flutter dropzone package, how can I get the mp4 file from blob url or uint8list?
how can I get the mp4 file from blob url or uint8list?
You can not get a reference of a File object pointing to the dropped File. That is simply not possible in a web environment.
But as you have already pointed out correctly, you can get the file contents as a Uint8List or Stream<List<int>>. Should not really make a difference since the content of the File is usually all one cares about.

Transfer file from native and receive it in flutter

I have a kotlin app and I need to transfer an image file from native to flutter. I am new to the kotlin side but good with flutter. How should I approach this?
How about transfer image data in base64 string format,
In Kotlin side, encode the image file data into base64 format,
In Flutter side, decode the base64 string to image,
I think it is the normal way to transfer images or other files between different Languages

How to copy an image to clipboard in flutter

I searched in google for how to copy an image to clipboard in flutter but I did not find any useful information. I only found in flutter documentation this:
"ClipboardData class:
Data stored on the system clipboard.
The system clipboard can contain data of various media types. This data structure currently supports only plain text data, in the text property."
https://api.flutter.dev/flutter/services/ClipboardData-class.html
Is it impossible to copy an image to clipboard in flutter right now?
I did not try and not sure if the answer is you looking for but you can give a try that first you can convert your image to Uint8List format with BASE64 decode and encode then copy it. for conversion you can check this. link
how-to-convert-base64-string-into-image-with-flutter
also check answers of this threat
how-to-send-image-through-post-using-json-in-flutter

Have a static url to host a picture that i will update monthly (iPhone app)

Okay so I want to load a image from a URL in my app, however this image will need to be updated every month manually, therefore its not practical to have to submit a new update to apple every time the url changes. So does anyone no of a picture/file sharing site that would allow me keep the same URL for the image even when uploading a updated version of the image?
You can just use the same url for the image that you want presented hosted on your domain or a hosting site.
So something like
http://www.mydomain.com/appImage.jpg
That you always call to and always is the address of the relevant image. Basically the URL is just a location that you can store any image at.
Up to my knowledge, in order to achieve this you will need a static URL. So that means you'll have to buy a domain from a hosting service.
Or if not you can use Google Drive for this. But you'll have to do some more coding for this.
Try using Google Drive:
Upload a text file(*.txt) to your Google Drive and get a shareable link. Convert it to a direct download link.
Next save whatever your image as a String (base64); I have attached some interesting coding examples below.
Then give the file link to your app; download the file; read the String(base64) convert it back to image format.
When you want to update the Image convert it to a String; open the Google Drive; edit your file using Drive Notepad (Do not use
Google Docs) and simply save it Ctrl+S.
Useful Links:
Google Drive Direct Link Generator
Convert between UIImage and Base64 string
Converting between Image and Base64 string in iOS
Java BufferedImage to PNG format Base64 String
Convert image to base64 with java
Hope this helps.