Struts2 Android Upload Image - android

We have an Struts2 Webserver which has the jsp way of accepting the file,
but the problem is using Android client the file upload happens by opening HttpConnection(Rest Api's)
can someone help me identify, How can i upload an File using Android client to Struts2 Webserver

Struts2 treats file uploads the same as any Java web app, using multipart/form-data.
Have a look at Ion, it has a good API for POSTing multipart/form-data.

Related

Linphone Android File Sharing Server

I am using Linphone Android for making secure Voip calls with my own Self signed certificates. For security reasons, I want to built my own File sharing Server instead of using Linphone standard Server having a php file url as: https://www.linphone.org:444/lft.php.
My question is how can I make my own Script/server to transfer files and images? I have searched many times on google could not find any solution or lft.php script.
Any help in this regard will be highly appreciated.

image upload functionality with apollo server 2 (graphql)

Herewith I need clarifications on image upload with android using Apollo server 2 for API work.
Previously I followed base64 conversion image-upload technic. But afterwards, I want to alter the file upload from previous on to in-built graphql-server file upload feature.
From internet searching, I can't get clear idea about how the file upload has to be implemented between android and graphql using the inbuilt file upload feature in apollo server.
So please anyone share your thoughts on it and redirect me to clear path to implement it correctly..
I've Searched a lot on Android File Uploading in Apollo Server using GraphQL.But In Apollo server we can Upload a image using Base64 Format the only possible and easiest way is to use Retrofit .We can upload a file in Apollo server using Retrofit POST Method in Android.

How to upload a file in android without php?

I want to upload a file in android and later one should able to download it.I've seen some examples and mostly everyone using PHP server to upload a file.My question is is it possible to uplaod a file without php? If so can anyone show me some examples with out using php as i don't have any idea on php i'm not able to create a php server for upload.I hope my question is clear.
Thank you.
you can Use Dropbox API to upload a file in Android
Read Upload a file using Dropbox api

Save File to a remote Url

first of all sorry for my english , not my main lang.
I need to export some data to a remote folder from android.
I have a file on android "file.xml" and i need to export it to a folder (under iis)
"http://192.168.x.xx/folder/fileuploaded.txt"
It seems most of the examples out there are using an upload script in php, but i need to do it only from android. Doing the opposite way (from remote url to android app) is easy with Url.openStream(), but i cannot find a working example to put back the file on the server.
Maybe im missing something, this is my first android (and java btw) app.
anyone could point me in the right direction?
Thanks!
Diego, what you are trying to achieve is not possible only from Android. You cannot put a file on the server using HTTP unless there is a receiving application running.
You can only post your binary data to the server (url) but to write it locally and make it available on the http again for download, can only be done if you have a server app. It could be created using any language PHP, JSP, ASP etc.
You cannot just upload files to server of your wish unless there is something on the server side that allows file uploads. That is usually a ASP/Perl/PHP script.
If you don't want to use such a script, then one way to do this is to run ftp on your server and upload files using that.

Problem while downloading .apk file from https web server in Android

I have a webserver on which I am putting my .apk file.I have given
correct mime type also for apache web server.
When I am trying to download from HTTP then it is working fine but
the same thing is not getting downloaded from HTTPS site.
I have a verisign test certificate which is valid for one month for HTTPS.
Any help will be highly appreciated.
Regards
Dileep

Categories

Resources