I'd like to upload images to my own hosting, I don't want to use upload services . Please can you suggest any library to be implemented.
You can try using a FTP Client (like this one )to upload directly to your hosting, but anyway you'll need to send the file name and the location of the file via php...
Related
I am currently working on an android application and I would like to add a file system to send images. But I don't know how to get an image from the local storage of an android, nor how to send it to a server. I am currently using a flask server to retrieve JSON files, and I don't know if retrieving images would be possible with this kind of server.
Would you have any clue how to retrieve a file on a button press and send it to a server please?
You can use this library to pick from local storage and upload it to the server with ease
https://github.com/gotev/android-upload-service
At this point, it doesn't matter what server you use as long as you can retrieve data.
You can do it using Retrofit. For detailed instruction, check This medium post!
I just use SimpleFTP that's a library that only can allows you to upload photos to the FTP server. The problem is that I need to download images and I need to sync image names that I insert in my database too.
So what's the best way FTP or HTTP because FTP it's faster than HTTP but I didn't find a library to download images by name. Please provide some libraries with usage or code.
I suggest you to do not use ftp. If more than one user at the same time makes upload or download request, ftp is shutting down. You must use webservices.
Is there any way possible to get a direct URL to download the media file which I have uploaded onto the Firebase storage using my Android app?.
Scenario 1 :- I am basically looking for a http or a https URL which I can paste it in the browser and the image can be downloaded.
Scenario 2:- I can get a public url so that I can write a download manager in my web app which can download the images from these urls.
Also, If possible I want it to be completely independent of any reference of firebase database.
Thanks in advance.
When you upload the file, a URL for the stored file is available in the returned UploadTask.TaskSnapshot. You can also obtain the URL from a StorageReference using getDownLoadUrl().
An example can be found in the Firebase Quickstart project.
You can use Fibrebase SDK on your server-side to download any stored file to serve it when a client requests it by name for example.
ok so i need to upload files directly to server without using any web service from android ..
first i am doing so with REST web service but the thing is it always say transaction is too large when executing my request .... in android i convert the image into byte[] then into Base64 string from my server side i decode this Base64 string and write bytes into file.
how can i upload directly to folder on my server ... something like executing a function that upload the file to "localhost/myWebApplicationDir/images/"then file here.jpg"
You will need to implement something that handles uploads as webservers typically don't do that out of the box. I'm sure you can find a POST upload script written in PHP somewhere on google. Then implement some code that POSTs the file to the endpoint and you should be fine.
There are no out-of-the-box tools for this but it's not a lot of work.
i found this link to be very helpful i discovered that you need an open connection with the server and communicate with streams something like keeping connection alive and upload files bit by bit.... but still you need a web service like #meredrica said.
http://ihofmann.wordpress.com/2013/01/23/android-sending-post-requests-with-parameters/
I use my application to upload the video in server and it was stored in appropriate folder in server, i need to show the list of video from remote server folder and allow the user to streaming the video.Is there any sample is there?
I feel you can have a script running on server which tells you about which directory has what videos, and returns their URLs too.
Later, you can access those URLs to play the videos
You can use commons-net-2.2-bin library to create a FTP connection to your server and make a query of listing . files from the folder.