They took this photo onboard the Space Shuttle Discovery with a digital camera. Follow the link to get a high resolution image.
Sun Spot from 5000 km
You can get the high res image of the sunspot here. There's also a short video.
http://digg.com/space/PICTURES_Sun_s_Surface_From_5000_Kilometers - via The Science Blog