i am getting the following error\[quote\] Error 5 Delegate 'System.Drawing.Image.GetThumbnailImageAbort' requires an 'AddressOf' expression or lambda expression as the only argument to its constructor. D:\Visual Studio 2010\WebSites\01\apr\WIA_2\uploadimges.aspx.vb 26 111 D:...\WIA_2\\[/quote\]i am using\[code\]Imports System.IOImports System.Drawing.ImagePartial Class uploadimges Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim originalimg As System.Drawing.Image Dim strFile As String = DateTime.Now.ToString("dd_MMM_yymmss") + ".jpg" Dim log As New FileStream(Server.MapPath(strFile), FileMode.OpenOrCreate) Dim buffer As Byte() = New Byte(1023) {} Dim c As Integer While ((c = Request.InputStream.Read(buffer, 0, buffer.Length)) > 0) log.Write(buffer, 0, c) End While originalimg = System.Drawing.Image.FromStream(log) originalimg = originalimg.GetThumbnailImage(200, 200, New System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero) originalimg.Save(Server.MapPath("Images") + "\" + strFile) log.Close() originalimg.Dispose() File.Delete(Server.MapPath(strFile)) Response.Write("../Images/" + strFile) End Sub Public Function ThumbnailCallback() As Boolean Return False End FunctionEnd Class\[/code\]with the webcam.js script as \[code\]<script type="text/javascript" src="http://stackoverflow.com/questions/15739977/webcam.js"></script> <script type="text/javascript"> webcam.set_api_url('../uploadimges.aspx'); webcam.set_quality(90); // JPEG quality (1 - 100) webcam.set_shutter_sound(true); // play shutter click sound webcam.set_hook('onComplete', 'my_completion_handler'); function do_upload() { // upload to server document.getElementById('<%=upload_results.ClientID%>').innerHTML = '<h1>Uploading...</h1>'; webcam.upload(); } function my_completion_handler(msg) { // extract URL if (msg.match(/(http\:\/\/\S+)/)) { var image_url = RegExp.$1; // show JPEG image in page document.getElementById('<%=upload_results.ClientID%>').innerHTML = '<h1>Upload Successful!</h1>' + '<img src="' + image_url + '">'; // reset camera for another shot webcam.reset(); } else alert("Error: " + msg); } </script>\[/code\]I REPEAT i am getting error at LINE 26 ( ThumbnailCallback ) >>> underlined BLUE