I have uploaded image using input type="file" and cropped it using JCrop. The cropped image is stored in hidden field as follows

```
<input type="hidden" name="imgCropped" id="imgCropped" />
$('#imgCropped').val(canvas.toDataURL()); 

```

Now I want to send this image to the controller as a HttpPostedFile. i.e I want to set the hidden field value as the value of input file type. How can I achieve this?.

```
<input type="file" name="file" class="form-control" id="file" />  

```