Hi i want to send file using native http as binary not form data can you please guide me thorugh it how to do.
I am using ionic 6
Need to upload file using native http send as binary
Cant able to find proper solution.
can any one guide me other ways to this?please don't suggest me formdata
Related
I'm trying to upload a video on s3 but nothing works.
Moreover, we can do it using the native code of iOS and Android and connect it using the flutter channel. But It seems too expensive in terms of time and complexity.
We have another way that we can send the media file to our backend server and from the server side, we can upload it to the S3 bucket.
But I'm trying to figure out a way to do this from the front-end side itself.
Thanks for any suggestions.
I am creating an app that capture video and upload it to server i have create the code for capture video ,and for upload I am studying this code but I did not understand to where to put my server address to store data there.
And also is there posible to store video using FTP because in my company PHP and .NET guys use FTP and i want to know that i am able to upload video using FTP in my iPhone app.
In the WebService.m file, there's a placeholder that says "your URL string", replace that with your actual server.
If you want to use FTP, you can do that as well using a networking library that supports FTP, one in particular is the very popular libcURL library.
How can I get a pdf data (stored in datastore as blob) from iphone if i make a request to google app engine?
When I use
self.response.out.write('asadasd');
in google app engine code
I can see this 'asadasd' in iPhone.
But i don't know how to set this communication so that i can get a pdf data from i phone.
Thanks in advance!
If I understand corretly, you want to send an pdf file to a webapplication, right?
I think it would be a solution to base64 code the binary data of the pdf on the iphone (that comes from your blob) and then send it via http post to the webapplication.
You should set the proper headers before writing to the output stream:
self.response.headers['Content-Type'] = 'application/pdf'
self.response.headers['Content-Disposition'] = 'attachment;filename=filename.pdf'
self.response.out.write(...)
I have been trying to send .png images from iPhone to web service. I have come so fas as converting the .png image into a byte[] array. I am clueless as to how to use soap or HTTP get/post to transfer the byte[] image to the web service.
Any help would be greatly appreciated.
Sayeed
if you want to use just an HTTP-POST, you can try the ASIHTTPRequest library. it wraps the NSHTTPRequest into an easy-to-use container.
there is also an example how to submit files (your png).
I'm quite new in iPhone development and I need to develop an app.
I must get mp3 data from a web server, which provides a simple saving the mp3 in my app document or folder
and use it in an application, which should also dislpay a table with rows like:
song1
song2
song3
But at present I don't know at all how to get this web page, parse it and store into an array in the application.
Please do you have any suggestion / hint / sample code ?
Thank you in advance,
There is a tutorial on the apple developer site on how to make a http request and receive data here. Should get you going on how to fetch the web page.
For parsing you can use the NSScanner or a XML/HTML parser library like TouchXML depending on your needs.
I used web services to communicate with web server, the following tutorial helped me a lot.
http://icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/
I was able to send and retrieve binary content using web service but I had to encode it first to be able to send it through Soap request and decode back Soap Response.
Hope that can help you,