Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WCF and WF
  4. Upload image to WCF

Upload image to WCF

Scheduled Pinned Locked Moved WCF and WF
csharpioswcfjsonquestion
1 Posts 1 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Software2007
    wrote on last edited by
    #1

    I am having trouble uploading simple image to WCF. I would like to get to it from iOS, but I think my WCF isn't correct. The other methods I have in in my contract work fine, just this one that have to do with the Stream parameter. Can anyone see if there is anything wrong in web.config that would prevent me from uploading into the service?

    [ServiceContract]
    public interface IGetEmployees
    {
    // ....

        //Insert Image
        \[OperationContract\]
        \[WebInvoke(Method = "POST",UriTemplate = "json/UploadImage")\]
        void UploadImage(Stream data);
    

    }

    public void UploadImage(Stream stream)
    {
    //Implement here - stream is always null??????
    }

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups