I want to send image from android through Web API to windows server file system. There would be bulk use of this API or process for uploading images. So, Please help me out what should be the best approach for this ?
I tried converting image to base64 in android and then sending it to API but i was not getting proper base 64 and i found this a dicey approach.
This is the solution for my problem.
Related
I'm trying to implement an Android app that uploads an image taken by the user to an API which removes the image's background, and sends it back to the Users device.
Here is the API for more info. I'm trying to send a jpeg image and receive the image as a jpeg aswell.
The API docs state that the POST request has to be multipart/form. I don't have any experience on making API calls using Volley and was wondering if any one could help me figure out how to do it. Thanks in advance.
this is my issue; I want to send fax dynamically, the content of the fax is a PDF
In order to make this PDF available for Twilio Fax API I have upload the PDF as an asset to Twilio, but I do not see any way to achieve this, I have programmatically created assets, but there is no way (at least I can not see one) to attach a PDF as the 'content' of the asset, maybe I'm wrong and there is other way to make those PDF's available for Twilio Fax API
Any help is appreciated
Thanks!
Twilio developer evangelist here.
The Twilio Functions and Assets API is not the best avenue for just uploading a static file to be used as media in a fax. It's built for the creation of application bundles, which is why it comes with the concepts of builds and environments. To upload the actual file, you also need to create an Asset Version.
You could use the Assets section of the Twilio console to upload your PDF, then use the URL in the request.
Alternatively, if you want to do it programmatically, I'd recommend uploading your PDF to something like AWS S3, and then using the resulting URL as the mediaUrl for the fax API.
Let me know if that helps at all.
I am just a beginner at Android so this question might be stupid. PLease help me out of this.
I am working on an App which requires data to be uploaded on the server. The data could be text, image or a video. I tried to use the following link
http://developer.android.com/reference/java/net/HttpURLConnection.html
and also
http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106
However I ended up being even more confused. How do I send the data into the server using the ASyncTask doinbackgound method.
Thanks.
I suggest you use a REST Client for your networking needs. They allow easy use of Async Http Requests and even easer exception handling.
These are some the most notable REST Clients available out there:
Retrofit
ION
Android-Query
Could any one of you suggest what would be the proper solution to this design.
Here is what I'm trying to accomplish and I'm not sure whether it's all possible.
Infrastructure
Android > Php ZF > Couchbase
So all communication is done using Restful. Currently how it works in my apps is as follow. Android requesting an image file say jpg/png to my apps via Restful. Myapps needs image file stored in the Couchbase so it contacted Couchbase via Restful, received file in apps server, decode the restful from base64 back to jpg/png , Encode the data again to base64/Json, transfer it to Android device. Android device received the Json in base64, decode it back to the jpg/png.
Does this movement make sense?
So in order to cut down on decoding>encoding>decoding. I'm wondering whether it's possible for me to have my android contact the Couchbase directly via my PhpZF apps server and just do decoding once after it arrived at the android device?
Please advise? Many thanks everyone. Hope this make sense on what I'm asking for?
I've a social networking app for android in which i can view list friends after fetching from java server +mySql database, actually i have done with loading all information from Java Servlets to android client but i'm unable to load images which are stored as blob in mysql on the server side database.
I tried to send blob objects to android client as strings and then tried to convert them in bitmap at the android client side. but I could not do what i wanted.. :(
Can anyone suggest me how to do it?
I think a viable solution is to put a simple blob servlet capable to send a image/your_image_format response via HTTP. This way you can easily download/decode the Bitmap in your Android client from the servlet response, then set it as your ImageVIew source.