private SwfImageUtils.JPEG loadJPEG(SaxAttributesSupport attributes)
		{
			if (hasAttribute(attributes, "encoding"))
			{
				if (!getAttribute(attributes, "encoding").Equals("base64"))
				{
					//UPGRADE_ISSUE: Constructor 'org.xml.sax.SAXParseException.SAXParseException' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_orgxmlsaxSAXParseExceptionSAXParseException_javalangString_orgxmlsaxLocator'"
					fatalError(new SAXParseException("unknown encoding " + getAttribute(attributes, "encoding"), locator));
				}
				if (hasAttribute(attributes, "src"))
				{
					//UPGRADE_ISSUE: Constructor 'org.xml.sax.SAXParseException.SAXParseException' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_orgxmlsaxSAXParseExceptionSAXParseException_javalangString_orgxmlsaxLocator'"
					fatalError(new SAXParseException("can only specify one of src or encoding attributes", locator));
				}
				
				text = new System.Text.StringBuilder();
			}
			else
			{
				text = null;
				if (!hasAttribute(attributes, "src"))
				{
					//UPGRADE_ISSUE: Constructor 'org.xml.sax.SAXParseException.SAXParseException' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_orgxmlsaxSAXParseExceptionSAXParseException_javalangString_orgxmlsaxLocator'"
					fatalError(new SAXParseException("must provide either src or encoding attribute", locator));
				}
				try
				{
					System.IO.FileInfo src = new System.IO.FileInfo(getAttribute(attributes, "src"));
					//UPGRADE_TODO: Constructor 'java.io.FileInputStream.FileInputStream' was converted to 'System.IO.FileStream.FileStream' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioFileInputStreamFileInputStream_javalangString'"
					System.IO.FileStream input = new System.IO.FileStream(getAttribute(attributes, "src"), System.IO.FileMode.Open, System.IO.FileAccess.Read);
					sbyte[] image = new sbyte[(int) SupportClass.FileLength(src)];
					SupportClass.ReadInput(input, image, 0, image.Length);
					input.Close();
					SwfImageUtils.JPEG jpeg = new SwfImageUtils.JPEG(image, true);
					if (!jpeg.validate())
					{
						//UPGRADE_ISSUE: Constructor 'org.xml.sax.SAXParseException.SAXParseException' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_orgxmlsaxSAXParseExceptionSAXParseException_javalangString_orgxmlsaxLocator'"
						fatalError(new SAXParseException("Invalid JPEG data in " + src.Name, locator));
					}
					return jpeg;
				}
				catch (System.IO.IOException e)
				{
					//UPGRADE_ISSUE: Constructor 'org.xml.sax.SAXParseException.SAXParseException' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_orgxmlsaxSAXParseExceptionSAXParseException_javalangString_orgxmlsaxLocator'"
					//UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Throwable.getMessage' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'"
					throw new SAXParseException(e.Message, locator);
				}
			}
			return null;
		}