how to fix this error when i try to save my phone pictures to my firebase database? - kotlin

I am designing an application for selling plants and I would like all users to be able to add plants from their phone to the application, but I cannot load and retrieve the images in the database
not having a very good knowledge of this language, I started to follow some videos but the result was still not satisfactory.

Related

What is the proper way of scanning files uploaded by a user using an api

we are a small team of devs currently working on a website which hosts some awards for its' participants. The user is able to create and account, log in and then fill up a form, part of filling the form is to upload some pdf files, we are looking for a solution which will scan files before we save it on our server.
I tried contacting virustotal but, they basically told me that what I am looking for doesn't work with their api.
I am simply looking for any reputable company that has an api which we can use to perform the scanning.
*We have no issues with paying
Anyone went through similar problem, please share, service, company etc..
Thank you

Need to track downloads of App with referral

We have one requirement as there will be one link with QR code of stores, we will share these links with different different persons. From that link we will allow user to open google play store or apple store.
Now we want to track how many persons have downloaded mobile application for each Stores.
We have checked https://www.npmjs.com/package/react-native-check-app-install but its for all download, and we need referral download counts.
If Anyone have done same in react native then please give guidance on same.
Thanks in advance.

Which is a better way: retrieve images from AWS S3 or download it and store locally in a temp folder to be displayed?

Problem: Retrieve image from S3 and load into UIButton.
I'm currently doing my research on this issue and can't seem to make up my mind. Which is a better way to do it in terms of performance and security issue?
Also, do I need to do caching or store these images in Core Data?
Thanks!
It depends on how you use them. If your app is going to retrieve the images similiar to instagram, or twitter, it's good to download them as the user requested the images via the app.
If once the images are retrieved, the application going to use the images again and again multiple times, it's a good idea to store the images after they are downloaded.
For example, let's think about an application about "social networking" concept, and this app, let's say, has a chat interface which is functional after users add each other. As the users add each other, you download the images of the users and store them on the device, then you can use the profile images of the users by retrieving the locally stored images rather than retrieving them from the server, thus, each time they chat each other, you dont use the bandwidth for nothing. And you should also use a push notification or something that has a similiar functionality for the scenario, when a user changes his profile pictures, all of his/her friends should also be notified (I mean the app is going to be notified by the server) to retrieve and update their local profile image with the newly added ones.
As I said, it depenends on the scenarios of your application/server relationship. If the images you are storing on the AWS S3 are only going to be used only once, then storing them is useless. And If the user is going to use some of the images frequently (like app is a social networking app, friendship app and the friends are going to see each other's photo or uploaded images frequently), then storing them is a good idea, only for some of the users that who has subscribed to each other.

Streaming movies from my server

I'm playing around to make an app that lets people stream cartoons that I make. It's a very simple app, one ImageView is just loading in a html-homepage in a UIWebView. Witch contain links to .mov files. So if you tap them a movie will start playing. This is because I just want to update the html-file with new cartoons every week.
Is this an "ok" way to do things code:ing-wise? Or am i obligated to us some Objective-c streaming functions?
Is there a specific file-type that i have to use in the movie-files on the server?
Is the HTML static in your app, or does it point to a server? If it's the former, you may be able to get the app approved doing it the way you suggested, depending on the reviewer. If it's the latter, you're unlikely to get it approved by apple.
They tend to frown upon web sites bundled into apps, and will tell you to simply make your website usable with the phone. See section 2.12.
My suggestion is to spend a bit more time and offer iOS users a better - and more immersive - experience than is available via the web. As I'm sure you've found, there are many built-in ways to stream movies and to present them in a manner that surpasses a web-page-like experience.

how to display the live website data in iPhone application

I am newbie for iPhone application and I want to create iPhone application based on the website client have. What I want to do is show the Upcoming Courses from this website. Any idea how to do that?
Note that, the table that is there in section Upcoming Courses is static data and this site is created using Joomla. The web-developer do the changes in the Upcoming Courses section on a weekly basis depending on the courses.
Could anyone suggest me right path what needs to be done?
I also tried to search on google and found that RSS need to be created for that section. So I believe if I need to create RSS, then I would have to store this data in database. Isn't it? Is this only one way to deal with it?
My Client says, if they do the update in website, it should also get rectified in iPhone application too.
Look at the example right here:
https://github.com/greenisus/cocoa-rss
If you use Joomla, then you have a database already, of course.
I'm pretty sure that there are some sweet modules for RSS, which you can use.
Then you'd just have to parse them in your app.
There is no such thing as push in RSS, you'd have to consistently check and update your content.