• entries
    205
  • comments
    228
  • views
    112564

Web Services are that easy!

Sign in to follow this  
Mike Bossy

244 views

Well after rebuilding my laptop and ramping up on the new job I finally found some time to play around with web services. I was amazed to find out it almost is as easy as just sticking a compiler directive in front of your method. I mean it's almost not fair.

So I currently have two methods on my webservice, one called GetImageSize that returns the size of the image you're requesting so you know how big to make your buffer and then another one called GetImage that returns the byte array. The only problem I ran into is that the default buffer size for calling a method is 16k so any images greater than that size were getting truncated. A small change in the calling app's config file and it just worked.

Right now the web service is just serving up images from disk as a proof of concept. Next step is to just pull that data from a DB instead. That shouldn't be that difficult.

If I had any screen shot more exciting than a windows form with a bitmap displayed on it I would show something :)
Sign in to follow this  


1 Comment


Recommended Comments

Quote:
I was amazed to find out it almost is as easy as just sticking a compiler directive in front of your method. I mean it's almost not fair.
I had much the same reaction when I came across them last year. I initially thought I MUST be doing something wrong - they couldn't actually be that simple, could they?!

Quote:
If I had any screen shot more exciting than a windows form with a bitmap displayed on it I would show something
Web Services != Sexy.

Jack

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now