Flutter Upload File and Save in Application Storage Directory
I am writing these articles to share my knowledge with you. Flutter is the most prominent and emerging technology in software development, and Google is maintaining Flutter by adding significant features. Version is getting newer frequently. So It’s a must to update with these new features in Flutter. Please go through reliable sources and study them. They will help in your subsequent development. That’s the way how you can survive.
I have seen many tutorials that can refer to uploading files. But finding a proper way to upload and save files in the application directory is rare. Here is my 61st Flutter tutorial that shows you how we can upload a file using an image picker package and then how we can save it in the application directory.
This is useful in many use cases. I used this feature while developing an offline application that utilized SQLite databases. First, I tried to save images as a String. It succeeded, but the row size is vast when fetching the data. Because of that, it’s throwing an error, and we tried it another way. We can upload the Image and save it in the application directory. Then in my case, I kept the copied file path in the local DB and fetched it to load the Image. That’s the solution. I found my way, and there…