I have an Ionic app, i want to download a file in EXCEL format and the BLOB object looks like this :-
data: Blob(36199)
size: 36199
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
How to download such Blob files? I have read about Cordova File plugin but haven't got any way to implement it for downloading Blob files.
How to achieve this?
Related
I would like to create a ZIP file that is protected with a password.
Has anyone done this before and can you give me a few tips? I couldn't find a reasonable package on pub.dev.
Plugin archive
https://pub.dev/packages/archive
Use this plugin you can do like this:
final archive = ZipDecoder().decodeBytes(
_file,
verify: true,
password: "your_password", )
You can use this unpublished plugin flutter_zip_archive just download the code and use it. For better future development add the method channels from the repo to your app with the files included in the lib folder.
This package supports zipping and unzipping the files with passwords. It also provides the privilege of adding the destination where the zip file should be stored.
PS. To encrypt a file you'll need a file available locally before zipping.
Currently, I am using open_file: ^3.0.1 plugin for an open local disk file. But How to open any network file? I store the file on Firebase Storage and I read URL.
for Local File open
OpenFile.open(path);
I stored any type of file to firebase storage... And also I load all files from firebase storage. Users can open(view) these particular files
Example:
Url 1 = https://... - image
Url 2 = https:// - pdf
Url 3 = https:// -
word
One way of accessing files from a network is downloading the file to a temporary directory on your device. You can use flutter_downloader to achieve this. Once downloaded, you can read the file from the path.
But since you're using Firebase Cloud Storage, follow this guide to download the file. If you wish to only temporarily store the file, you can delete the file when not in use anymore.
I want to download a zip file from this website, unzip it and then show it into an excel file.
http://www.belgianfootball.be/nl/downloads-competities
With which component can I do this?
You can use the tHTTRequest component.
https://help.talend.com/display/TalendOpenStudioComponentsReferenceGuide521EN/14.11+tHttpRequest
Here you can find a nice guide:
https://www.talendbyexample.com/talend-thttprequest-component.html
I am trying to set up a private app store using azure. I'm trying to use azure blob storage for storing .ipa and .plist files.
here is the reference:http://gknops.github.io/adHocGenerate/
I am able to upload files to azure blob storage and the files are available in the container with container access(i am able to browse to the file in my mobile).
Now when I try to use itms-services and open the .plist files hyperlink it is throwing that "cannot connect to xxxxxxx.blob.core.windows.net". But when I open the links to my ipa and plist they are working.
All the urls(html, ipa nad plist) are https only and using a mobile network so there are no network restrictions.
ex:
I am uploading the stored file as: myFile_v2-1-6.ipa, myFile_v2-1-6.plist
I am referring it in html as
https://xxxx.blob.core.windows.net/xxxxxxx/myFile_v2-1-6.plist">
Can someone help me with this issue? Your help will be very much appreciated.
EDIT:
my html is there in https://xxxxxxxxx.azurewebsites.net
Azure Blob storage was working fine.it was the problem with my plist file.
i am editing it using XmlDocument and saving it, then XmlDocument adding braces [] to the DTD element because of which the plist file is corrupted and throwing this error.
took some to understand this and now i am removing the [] using string replace and using that plist file. app installation is all working fine.
I am developing an application in which I am getting a zipped XML file from web service.
Now I need to unzip it and I have to parse it. How can I unzip an XML file coming from web service??? Is it necessary to save unzipped file (after unzipping) before taking it to parse or is there a code which gives unzipped file directly without saving it to documents directory?
Code for this is helpful.
Thanks in advance..