Link to home
Start Free TrialLog in
Avatar of Devildib
Devildib

asked on

send receive image files via Wcf restful service client

Hi experts,

We have a requiremnt as in there is webform with browse upload .gif image functionality along with 2-3 text boxes to be filled.All this is to be sent to a wcf restful service which will commit the same to db.
Question is how do we send across the image file as attachment aling with request xml to the service.If not attachment what isbthe best way to do the same.Any reference code would be of great helpmto build on.
Avatar of Devildib
Devildib

ASKER

Any updates pls?
Any update?
Avatar of Anil Golamari
Not sure if you are still looking for sample code but below link has sample code you are looking for. You can same xml file into the table column directly. So if you can create a store proc which can accepts both image and xml file as input and then execute the store proc to save the content to the db.

http://www.dbtutorials.com/retrieve/saving-retrieving-image-cs/
I think i confused you.I need to pass image as attachment along with the request xml to a rest service.I am not concerned about how the service commits the same to db.Any sample code for this would be a great help.
ASKER CERTIFIED SOLUTION
Avatar of Anil Golamari
Anil Golamari
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My requirement is restricted to restful service in dot net.See if you can suggest something on those lines.