i want to running website where user upload their image than it will remotely upload to tinypic or imageshack .now it is question it is legal to this this .?
I would advise you check out their terms of service, rather than relying on advice from DP. After reading it, if you are sure that your usage is not violating it, then you should be okay. However, I would imagine this would be frowned upon. They specifically state that automated use of their site is illegal. You might be able to find a site that has an API though, but just make sure you read their TOS first.