c# - Tiff Image Processing -


i want pass tiff image web service, webservice takes tiff image parameter , have operations on tiff image.

please suggest me way pass tiff image parameter web service.

thanks in advance.

  1. upload tiff using html form, enctype="multipart/form-data".
  2. use httpfilecollection files = httpcontext.current.request.files; in web service (the action attribute of form) access uploaded file: httppostedfile file = files["id_of_field_with_filename"];. here "id_of_field_with_filename" id attribute of <input> tag of html form contains filename.
  3. you can uploaded file, example, save it: file.saveas(somedirectory + path.getfilename(file.filename));

note in solution method of web service (the "action") not have parameters. possible load image using html5 file api, convert base64 javascript, , upload string ajax post web service. in case method of web service need have string parameter receive base64-encoded bytes of image.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -