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.
- upload tiff using html form,
enctype="multipart/form-data". - use
httpfilecollection files = httpcontext.current.request.files;in web service (theactionattribute 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. - 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
Post a Comment