1 Eric Chudow 2 Lee Gumnic 3 Dec 2005 4 5 Our web service provides custom images. The client may specify a text 6 message to appear on the image, and receives it as an array of bytes 7 representing a jpeg file. Additionally, the client may choose to send 8 the image as an email to a specified SEAS address. The web page allows 9 you to specify message text as well as all parameters for an email. 10 Additionally it provides a dynamic image file that returns the image 11 to a web browser. This image URL can be used by users of the web 12 site. The web service does not use that image for the emails since 13 it shouldn�t be depending on one of its clients. It instead embeds 14 the jpeg file in the email itself which is where we spent the 15 majority of our time. 16 17 The service is located at http://harbormist.com/webservice/AddTextToImage/Service.asmx 18 We changes all of the default file names but left Service.aspx alone 19 because that seems to be a standard place to look for the WSDL. The 20 source is in the DynamicImageGenerator folder in this zip. 21 22 The web page is located at 23 http://harbormist.com/webclient/AddTextToImage/ 24 25 Notes on source: 26 27 � ImageText 28 o AppCode 29 ? GlobalInfo.cs 30 � Encapsulates some global constants 31 o Default.aspx(.cs) 32 ? The main interface of the web site 33 ? Provides forms to interact with the web service 34 o Image.aspx(.cs) 35 ? An asp file encapsulating the image 36 ? Changes the content type to image/jpeg 37 ? Writes the bytes from the web service to the response 38 ? Creates a 500 server error if the service fails 39 � DynamicImageGenerator 40 o AppCode 41 ? GlobalInfo.cs 42 � Encapsulates some global variables 43 ? Service.cs 44 � Implements the web service 45 � CreateImage 46 o Creates an altered image in memory 47 o Returns as a byte array 48 � Sendmail 49 o Takes altered image from createimage and sends it by email 50 o Jpeg file is created in the temp directory and then sent 51