<p>The ASP page gets data uses that to draw a graph, I then need to save the image created to JPEG to be displayed on the browser and also used in PDF and other format. What is the best way to compress the image? I am currently porting a JPEG compression library to ASP but I think it will be too slow on this ARM device running Windows CE 6.0.</p>

<p>So, the ASP page, running in Windows CE webservers, gets data, renders it into a bitmap image than then needs to be delivered to the browser accessing that ASP page. The same image is also used in PDF and one other proprietary format that can contain JPEG streams.</p>

<p>Edit:
What I am looking for is to way to create an array representing a bitmap and then compressing it to JPEG with ASP in Windows CE's IIS which has quite limited ASP implementation.</p>

[{'answer_id': 40178, 'author': 'John Rutherford', 'author_id': 3880, 'author_profile': 'https://Stackoverflow.com/users/3880', 'pm_score': 0, 'selected': False, 'text': '<p>I\'m confused... </p>\n\n<p>The images from ASP would be compressed on the server side--not client side.   </p>\n\n<p>I\'m sure your web server is not running on Windows CE, so I don\'t think your concern is warranted.</p>\n\n<p><strong>EDIT:</strong> Seems as though you can run a web server on Windows CE: <a href="http://www.microsoft.com/windows/embedded/products/windowsce/default.mspx" rel="nofollow noreferrer">http://www.microsoft.com/windows/embedded/products/windowsce/default.mspx</a>.  I\'ll keep my thoughts to myself from now on. :-x</p>\n'}, {'answer_id': 250296, 'author': 'ctacke', 'author_id': 13154, 'author_profile': 'https://Stackoverflow.com/users/13154', 'pm_score': 3, 'selected': True, 'text': '<p>Take a look at the Imaging APIs (start your traversal at the <a href="http://msdn.microsoft.com/en-us/library/aa452202.aspx" rel="nofollow noreferrer">IImagingFactory interface</a>).  If your device has a JPG compression codec installed (remember that CE is modular, so it may or may not be present) you can use it to create a stream (or file) from the image.  From there you can do with it what you wish.</p>\n'}]
['https://Stackoverflow.com/questions/40171', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4294/']