Firebase : Upload image or file from dashboard - upload

I'm trying to find a good alternative at Parse.
FireBase seems to be good, but I can't find how to upload image/file from the dashboard like in Parse ?
Can we upload image/file from the firebase dashboard like in Parse ?

No You Can Not because firebase doesn't provide such type of feature.
Edit:
Ah! My old accepted answer got unaccepted because I gave straight answer :) Well OP didn't ask about programming way of solution so I assumed not to provide one.
There are couple of approaches to handle images with firebase, I usually upload images to s3 bucket and store urls in firebase. Again there is choice to implement above approach i.e. do all on server-side, do all on client-side or do with mix of client-side and server-side. But It is better to do signaturing on server to keep thing secure.
Node-Cheat Available:
For complete code, get working node-cheat at github node-cheat aws, choose any folder and run node file_name.

While the above is an answer, it's does't provide a solution, so here's a bit more data.
Uploading/storing data in firebase is super simple and requires a minimal amount of code.
For images, encode the image as a string and store the string in firebase. Then to retrieve the image, retrieve the string and decode it.
You should be able to do both in about 12 lines of code (depending on platform).
There are several examples already published here, I like this one with Swift.
Swift2 retrieving images from Firebase
Hope that helps!

No, you cannot upload directly, but you could use some opensource project out there that will make a simple dashboard for you to upload it easily like this tutorial

Related

Firebase chat backup/export like whatsapp in SWIFT

i implemented a chat app in swift using firebase real time db, there user can send images, emojis and Text.Now i have a requirement of export chat or get the conversation's backup with media and text as per whatsApp.help me to solving it out.
While Firebase offers a backup for the Realtime Database, this doesn't fit your needs here, since you'll want a per-user export of the data.
Since this is specific to your application, you will have to code it yourself, just like the good folks at WhatsApp have probably done. It should be a matter of iterating over all data sources for the user, getting the data through the relevant API (that you're already using to display that data), and then writing to a local file). You can do this either client-side in your Swift code, or server-side on a server you already may have, or using Cloud Functions.
If you're looking for some inspiration for the latter, there is a sample repository that shows how to clean up a user's data, based on a set of wipe-out rules. You'll need to significantly modify this example though, so I'm not convinced this will be less work than rolling your own from scratch.

How do I implement a Document Provider Extension in Xamarin?

I maintain a store of encrypted data I would like to expose to other applications. Right now the data requires a passcode to unlock/decrypt that data.
The document provider extension I created so far doesn't seem to be loading (I checked the certificates) and I can't expose that to the other apps.
Are there any examples of how to do this?
I've already looked at the official documentation, the Git repository of various team members of Xamarin, and all the other general sources.
Are there any special gotcha's I need to address and may be missing?
This should give you a good start : https://forums.xamarin.com/discussion/16071/encryption-decryption-in-xamarin
And to get a complete working solution. Refer the Kinder Chat app.
https://github.com/xamarin/KinderChat
Hope that helps

Uploading pdf files stored in iphone to server in ios

I am making an iphone application which is pretty much like forum. People can ask question and upload a pdf/doc file along with the question. Is there a way to access the pdf/doc file in iphone when user clicks upload button and send the file to server?
I have implemented the feature for image for which I used UIImagePicker to pick the image and send it to the server with http request. But I am completely lost and have no idea how to handle pdf/doc files in same manner.
Any help/suggestion really appreciated. Thanks in advance.
If you want to upload PDF and Doc files, then you can integrate Dropbox and Google Drive in your app and then select the files ,as Apple does not have centralised storage. If you notice Apple also chooses the documents from Google Drive while composing a mail.
So implementing and integrating google drive and Dropbox would be a good option.
Here is the link for Dropbox https://www.dropbox.com/developers-v1/core/sdks/ios
Here is the link for Google Drive https://developers.google.com/drive/ios/quickstart
Implementing Google drive is a bit hard but dropbox is quite simple.
Wish it saves your time. All the best!
I think you are looking for a combination of two things (both have been discussed here before and I include the links below).
(1) store a PDF. There are many options but the best way is to allow coredata to save outside the persistent store. Then store the reference to the file in core date. See: Insert a PDF file into Core Data?
(2) send the file to the server. There are many options for this as well. The fastest is probably to use a wrapper library such as ASIHTTPRequest. See: File Upload to HTTP server in iphone programming

Alternatives to storing data to database rather then using Parse

I have been using Parse lately for applications I develop, mainly due to the simplicity of getting an app off the ground. This could eventually be costly, more so unless I store to my own database on a rented server, I'd assume. So my question is: How would I go about storing data externally to my own server? Is there any sort of framework like parse for this with option to use one's own server storage instead? I'd assume theres something considering writing a whole login system etc that's secure multiple times would seem a bit repetitive, hence Parse. Thanks in advance!
Google has provided a mobile backend starter some time ago, here is the link https://developers.google.com/cloud/samples/mbs/. Hope it will help!
Yes you have. Kindly look into DynamoDB from amazon.
Here is a good documentation for iOS SDK.
More granular detail is here
I hope that helps.
You may need to have an account with amazon aws in order to create your appID & all.

iPad app designing: sync with Excel file

I'm designing a new app for iPad for a small company. This app will use Core Data to store a local database and a database of products and prices. The last database needs to be always up to date since the prices can change.
This company, has a Excel file to keep this database of prices. So they don't have a SQL db to which I can interact from my app.
One option could be to export the Excel file in CVS and put that file in their server (accessible by internet). Then my app should parse the file.
I don't like very much this idea, though.
Do you have any suggestion?
I had a very similar problem to you. I recently got into a project where the client wanted to import information from an Excel file into an app. I know a lot of people say, just transform it into a CSV and parse it that way, but I really didn't want the client to go through yet another step and introduce a different file format - as simple as that may be.
I also really don't like having the information in the cloud, especially Google. Privacy is something that's important to most companies and I'd doubt they'd approve of you using Google to parse the info.
In order to parse the file, I created QZXLSReader. It's a drag-and-drop solution so it's a lot easier to use. I don't think it's as feature complete, but it worked for me.
It's basically a library that can open XLS files and parse them into Obj-C classes. Once you have the classes, it's very easy to send them to Core Data or a dictionary or what have you.
I hope it helps!
Here are a couple of options for you:
Use Google Doc as the intermediary. When the pricing Excel is updated by someone, simply upload the updated Excel to Google Docs. From your iPad app, you can read the latest data via the Goole API. If the company is up for it, they can move to Google Doc altogether and just modify the online Google Spreadsheet directly.
Use services like StackMob as the intermediary. You will have to write a tool to sync the pricing Excel with SrackMob but you can easily access the data via StackMob's iOS SDK.

Resources