Hi,
How Can i Show preview image when select file from dialogbox and then click button for save.
i tried telerik 'change avatar ' examp it working for show but i cant save image. when i try save file always error
'''' The process cannot access the file because it is being used by another process. '''
My code below
thanks
How Can i Show preview image when select file from dialogbox and then click button for save.
i tried telerik 'change avatar ' examp it working for show but i cant save image. when i try save file always error
'''' The process cannot access the file because it is being used by another process. '''
My code below
'show image with ajax
Protected Sub AsyncUpload1_FileUploaded(ByVal sender As Object, ByVal e As Telerik.Web.UI.FileUploadedEventArgs) Handles AsyncUpload1.FileUploaded
Thumbnail.Width =
Unit.Pixel(200)
Thumbnail.Height =
Unit.Pixel(150)
Dim imageData As Byte() = New Byte(e.File.InputStream.Length) {}
e.File.InputStream.Read(imageData, 0, e.File.InputStream.Length)
Thumbnail.DataValue = imageData
End Sub
'save image
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
For Each f As Telerik.Web.UI.UploadedFile In AsyncUpload1.UploadedFiles
f.SaveAs(
"c:\a.jpg", True)
Next
End Sub
thanks