Find Jobs
Hire Freelancers

Android Java HTTP Post .bin file

min £36 GBP / hour

Completed
Posted over 2 years ago

min £36 GBP / hour

I am trying to upload a .bin file from an Android Java mobile app to an ESP32 web server. I know the upload is working as I can test it on a web browser, but I have tried different solutions from StackOverflow such Volley, httpClient etc but it crashes on the transfer. Any help how to complete the file upload, looks quite simple as it's just an HTTP post file transfer, I need working code. I do not need any app developing, just some working java code. http code [login to view URL]("POST", upload_path, true); [login to view URL](file); Android java code public void uploadfile() throws Exception { try { File file = new File("/storage/emulated/0/Download/[login to view URL]"); if ([login to view URL]()) { CloseableHttpClient httpClient = [login to view URL](); HttpPost uploadFile = new HttpPost("[login to view URL]"); MultipartEntityBuilder builder = [login to view URL](); // [login to view URL]("field1", "yes", ContentType.DEFAULT_BINARY); // This attaches the file to the POST: File f = new File("/storage/emulated/0/Download/[login to view URL]"); [login to view URL]( "file", new FileInputStream(f), ContentType.DEFAULT_BINARY, [login to view URL]() ); HttpEntity multipart = [login to view URL](); [login to view URL](multipart); // Code is crashing here CloseableHttpResponse response = [login to view URL](uploadFile); HttpEntity responseEntity = [login to view URL](); } } catch (Exception e) { Log.d("Debug", "Catch - software activity 1050"); } }
Project ID: 32051463

About the project

14 proposals
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, would you be okay sharing you android codes? And the bin file, so that I can ensure working code for you, before sending back. Thanks, Cheers Kind Regards
£36 GBP in 5 days
4.7 (12 reviews)
3.9
3.9
14 freelancers are bidding on average £36 GBP/hour for this job
User Avatar
Hello Brendon S.,   We have 20 years of strong experience in Java, JavaScript, Mobile App Development, Android, HTTP, as a result, we can successfully complete this project.   Please, review our profile here: https://www.freelancer.com/u/tangramua Here detailed information about our company, our portfolio, and the client's recent reviews.   Also, we wanted to personally discuss questions about your project, which helps us to give you the right estimation.   Best regards, Tangram Canada Inc.   P.S. As you see from details of your profile, you located in UK (Great Britain). Be informed that our technical offices located in Ukraine i.e. you will be able work with our developers almost in same time zone.
£40 GBP in 5 days
5.0 (42 reviews)
6.9
6.9
User Avatar
* * * * * * * * * * * * * * * * * * * * * * * * Hello Brendon, I have read your job post very carefully. I do have 5 years of experience in mentioned technology. I can start work once you hire me and I will definitely provide you with a project covering all your requirements. I will provide 100% quality of work. I would like to discuss further scope of project via chatbox. Let's jump on a chat box. Awaiting your ping!!! Thanks & Regards, Virang Patel
£36 GBP in 40 days
4.9 (27 reviews)
6.1
6.1
User Avatar
Hello, hope you're doing well. I have reviewed your project description and can help to upload .bin file from android Java mobile app to ESP32 web server without crashing on transfer as per your requirements. "Let's have a QUICK CHAT to discuss further" I have extensive experience in designing and development of Websites, Mobile Applications, Management Systems and E-commerce or Online Stores Solutions. Kindly have a look at my Portfolio and Client's reviews via this link, https://www.freelancer.com/u/junkyfunky Thanks, Faizan A.
£36 GBP in 40 days
4.5 (55 reviews)
6.6
6.6
User Avatar
Hi There, i m Expert for JavaScript, Mobile App Development, Java, HTTP and Android. I am ready to work over your project. i have checked your Project Title is Android Java HTTP Post .bin file . its according my skills. Please visit my portfolio: https://www.freelancer.com/u/heenafullstacken Before accepting this offer please message me in my inbox to have a discussion about this Project. Regards Heena Full Stack Engineer
£36 GBP in 41 days
4.8 (3 reviews)
2.1
2.1
User Avatar
Hello, Mr. Brendon, I hope you are well I am Hamza, a developer of Native Android applications in the Java language, I have many years of experience in this field, and I worked on many applications associated with web servers that use APIs, and programs associated with files and also worked on fixing many errors in many famous and well-known applications, and I hope that I can help you with your problem, and I expect to do it in very little time, But I have a question for you, Mr. Brendon, what kind of API do you use in your application? I hope you will contact me to discuss more details of the work.
£36 GBP in 40 days
5.0 (1 review)
0.3
0.3
User Avatar
Hi, Greetings!!! It seems that you looking for an Android development expertise to develop your app with alluring UI/UX designs and reliable strong code development. Credibility, We have +12 years experience team in Android mobility design and development who are key expertise in PHP, Java, Javascript, Android SDK, working with APIs, Bug tracker, XML and JSON, Version controls, & UI/UX designs. We can provide you with the previous work samples which will give you a clear idea about our working style. Demonstrate Reliability, To move forward I would like to discuss regarding on app design themes and development framework which will give me the clear idea about your project concept. While timeline schedule and cost estimation we will discuss on chat. Please let me know if you are looking forward to working with us. Regards, Gauri Shukla
£36 GBP in 40 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Harwich, United Kingdom
5.0
16
Payment method verified
Member since Oct 4, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.