image upload functionality with apollo server 2 (graphql) - android

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.

Related

how to upload any file image, video, pdf etc. using http put in android?

I am working on an application that has the feature of uploading images, videos, pdf etc. Now the API is created using the HTTP PUT method. I have tried examples of retrofit using HTTP POST but I haven't found a working sample for HTTP PUT. If anyone has some knowledge about how to upload files of any size to the server, then please help me out. I am stuck on this from last week. Thanks.

Upload video to server in android using volley

I am trying to upload an image and video from my android application to a private server.
I can't figure out how to upload video with other images and text.
You need to create a multipart request in Volley and specify the path of your photo/video that you want to upload. Follow this tutorial for a better understanding - http://www.techstricks.com/multipart-request-using-android-volley/

Is there anyway to send files to public folder from Android?

I got a website hosted by Parse.com and it has its own tool to upload files.
I want to know if is there any way for me to send files from android app. I have my data shared with my android app, and it would be great if I can send images to the web site.
You should use the Android-Library of Parse.com.
It makes it very easy for you to connect your Android App to the Parse backend.
If you look at the docs, there is a section about uploading and downloading files.
https://www.parse.com/docs/android_guide#files
I've never tried it but I think this will allow you to upload your images to the backend.
There is also a JavaScript library to connect your website (client side) to the parse backend.
Again, if you look at the docs, there is a section about uploading and downloading files.
https://www.parse.com/docs/js_guide#files
You should be able to use the JavaScript library to access the previously uploaded app-images.
The basic flow would look like this:
Android App -> Android Parse Library -> Parse Back End
Parse Back End -> JavaScript Parse Library -> Website
Keep in mind: This is all hypothetical since I haven't tried it.
You can use Es explorer https://play.google.com/store/apps/details?id=com.estrongs.android.pop Install this application and then select network option in that select ftp . Then connect to your ftp server using your credential. then copy paste thats it

Struts2 Android Upload Image

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.

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

Categories

Resources