How to Handle images with file system mern - mongodb

Now i upload photos with mongodb and multer and save them in static folder.
`Uploads/`
I dont understand where its actually saved if i deploy my app.
I need to upload all photos to external filesystem?
I heard a lot about s3 but its dont free ,there is another that made this job? . And also i dont understand how can i connect my mongodb collections with the images from other filesystem.. and i dont find a beginner tutorial for this. Please help for understand it.

This way is a little bit confused because you have to save somewhere else your photo, heroku cannot save photos. A good way is cloudinary and then take the url from mongo.

Related

How to upload image to Parse flutter SDK server?

I am trying to collect users profile picture from his phone and to parse it on the server, and also (vice versa)to be able to load it from the server and show it in users profile.
Unfortunately, I can't find many resources on this. I only found this short "Update File" section at the end of this document, but since I am new to Flutter it is not helping me a lot.
https://pub.dev/packages/parse_server_sdk_flutter#usere
Could anyone suggest some resources or examples how to achieve that?

Store Image path in database

I am making a app in which I am retrieving data from Database in List View.
I want to have different picture with each data I retrieve from database in list View.
What I am trying to do is to save my pictures in drawable folder of my app and want to save image path in database and retrieve my image from saved path.
I searched lot on internet but couldn't get appropriate solution.
Somebody please show me appropriate code.
Don't know if you already have solved this problem,
but after looking for it myself i found a solution.
what i did was use this.
i stored my images in a subfolder in "Assets" and this works like a charm,
don't know how many images it can hold in total, but i'll find out eventually i guess xD

Is iCloud only meant for UIDocument and CoreData(How to Take Back up of any folder with its data on iCloud)

I read the apple documentation and some other links and found there are examples of using iCloud with only either UIDocument or Core Data.
I am having a folder created in documents directory named "backUPFolder" and it contains some images and other files in it.
I want to ask , if it is possible to move this backUPFolder in iCloud with all the data exist in this folder as it is.
If yes it is possible please provide me some useful link or suggest an approach which I can follow.
My requirement is to take a back up of my data on iCloud.
Please please help me.
I am stuck here.
Any suggestions would be highly appreciated.
Thanks in advance!
I have also only seen the UIDocument and Core Data examples. What comes to mind is to transform your pics and docs into Core Data blobs and store them with core data anyway. This could also be very efficient.
Alternatively, you could check out the Dropbox APIs.
If your folder in the Documents or Library folder of your application, it will be backed up to iCloud automatically assuming the user has iCloud enabled (and that you haven't explicitly flagged the file as NSURLIsExcludedFromBackupKey).
Any manual interaction with iCloud as a developer is typically to share files explicitly between installations of your app. If your requirement is just to back up data, you don't need to do anything besides store the folder in Documents.

How to use Offline Cloudmade Maps in an iPhone App

I’ve looked through the posts on the Cloudmade site here and I get some of it, but not all. I've posted the question below, but haven't had the help I need, so I thought I'd ask the question here.
I can see that I need to:
download the tiles for the required area to my Mac (but can’t see how to do this)
convert these to a sqlite database using the map2sqlite utility, changing the code to output the tiles to a table called “ZCACHE”, not “tiles”
Copy the DB to the Application Bundle
insert some code to copy this DB on first run, from the Application Bundle to the Documents Directory
Somehow get App to use this DB and not an online one – I can’t see how that’s done.
Any help would be warmly welcomed,
Chris.
The best solution for me to have iPhone offline maps is:
1.- Generate your own maps with TileMill and then export to MBTiles format.
2.- Get the mbtiles-ios-example and use the MBTiles file you just generated. In order to compile it, you need to download Route-Me and add it to the project.
Now, there is another option (not for free): Mapbox.
please check this tutorial, it can help - http://www.gisnotes.com/wordpress/category/sqlite3/.

Zend Image upload and generating thumbnails on fly

I am a php programmer, but new to zend framework.
I want to upload image, create medium and small(thubmnail) image on fly, I passed a couple of hours searching for a php library [ compatible with zend ] that can make my tasks easy. I dont want to write the code that already exists. thanks for any help.
I want also to know wether Zend_GData can be used to upload files to my server and not on google's. If tried that hack, please tell me how you did it.
any link, or suggestion is welcome. thanks and have a great day.
To upload I use:
http://www.uploadify.com/
To manipulate images (resize, crop, lots of stuff) I use GD wich is often installed with php.
http://php.net/manual/en/book.image.php
I also use http://phpthumb.sourceforge.net/ and its real easy to use.
With all that you should be set.