If you really need this soon, may I suggest you do some work yourself instead of instructing people to reply soon?
A 10 second search on Google will give you some very useful results on this topic.
Right now, we can't even answer your question as we don't know from where you want to save your images. Presumably not from the Query Analyzer, so maybe you are building a web site and using some server technology like ASP.NET? Or maybe you're building in desktop client in
VB 6 or Java? Who knows? I don't, so it's pretty hard to advice you.
The only tip I can give: do some research yourself and then come here with a clear description of your problem and clear questions.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004