Please see this thread on StackOverflow:

  http://tinyurl.com/chh4yxj

Thanks.