I want to upload a video file using asp.net mvc . I am sending the file as postbody. How can this be retrieved later from the server using webservice. I have seen this example . Also this question helped me to understand it more. But I m not sure how to fetch post body.
But no sure how this works. How to do his properly in .net c#
In order for the file to be available later, you need to save it somewhere during the upload - either to a database or a folder on the server. Then, your web service needs to know how to retrieve it from that location.
Related
I created some chrome extension that detects a file download event and cancel the download, and gets the download link. Sends the link to myserver.
I want to create a server that recive link to download, download the file, do some manipulation on the file and sends the file back to client.
All the time I developed client side apps (Mainly with c#), and I don't know what to choose for the server side, WCF App or Web API (or something else). the server can be inside the organisation or remote.
What do you think should I pick? any suggestions?
It seems that creating Restful-style services may be more appropriate for this scenario.
You know, both WCF and Asp.net WebAPI can create Restful-style services. WCF could take advantage of the Webhttpbinding to create it.
As for handling file uploads and downloads, I don't think there is any difference between the two techniques. Perhaps the services created by Asp.net WebAPI are a little more mature, such as the ability to deal with form-data stream (multipart/form-data) directly. While WCF service could not directly process the form-data stream.
Here is an example of an upload and download in Asp.net WebAPI.
https://learn.microsoft.com/en-us/aspnet/web-api/overview/advanced/sending-html-form-data-part-2
How to return a file (FileContentResult) in ASP.NET WebAPI
Feel free to let me know if there is anything I can help with.
I would like to create a web server application using ASP.Net WebApi 2. The application must parse a HTML page and upload clear data to Azure blob storage.
I've never created Web applications and I don't know how is right worked. Please show me how it is worked and what tehnology to use.
I would like to use ASP.Net WebApi 2, so that I can create an API that parses and uploads data to Azure blob storage.
Please check out many tutorials there are on the internet.
http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-get-started/
http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/
I am developing a web site using ASP.NET C# and I want to make changes on codes after publish. Every time I need to change something on a .cs file I have to build and publish web site then upload it to the server. Instead, I want to have a use like PHP style. Just make the changes on the source at server-side.
How can I do this if it is possible?
I am wondering if the data posted to the server is same when using
1) ASP.Net upload file control
2) Webclient.UploadFile method
Yes, it is absolutely the same respecting the RFC 2388 (multipart/form-data). This being said I wouldn't recommend you using ASP.Net upload file control in an ASP.NET MVC application.
Could someone please tell me/link me to how I could create a method similar to those posted below:
http://www.vimeo.com/api/docs/upload
http://www.flickr.com/services/api/upload.api.html
(I am providing the links as I'm not sure how to articulate this question without them!)
I'm using C# ASP.NET. IIS 6.
I have an existing web server with other public API methods. I do not want the iPhone user to have to open a web browser, and post to an aspx page. I want the iPhone developer to be able to call my method, and have one of the parameters be a handle to the file which gets POSTed.
Thanks in advance for any help.
You'll need to create a WCF Service Application. You can use this as a webservice that can be exposed to your clients. You can create a RESTful service using WCF where clients can POST video's to.
When searching for 'REST, API, WCF' you'll probably find all the resources you are looking for.