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.
DevildibAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DevildibAuthor Commented:
Any updates pls?
DevildibAuthor Commented:
Any update?
Anil GolamariCommented:
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/
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

DevildibAuthor Commented:
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.
Anil GolamariCommented:
I don't have exact sample code that you are looking for but 1st link has sample code on how to send an attachment using a soap request to a service and 2nd link has information on sending an attachment using ws-attachment feature in wcf.

http://stackoverflow.com/questions/8574938/adding-an-attachment-to-soap-request

http://devproconnections.com/net-framework/attach-docs-soap-messages

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DevildibAuthor Commented:
My requirement is restricted to restful service in dot net.See if you can suggest something on those lines.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
REST

From novice to tech pro — start learning today.