This is a migrated thread and some comments may be shown as answers.

'Chose Avatar Sample' doesnt run on version 2010.2.713.40

1 Answer 64 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
aliguldur
Top achievements
Rank 1
aliguldur asked on 27 Jul 2010, 10:25 AM

Below code running old version but i have updated version no run now.

function

 

 

fileUploaded(sender, args) {

 

$find(

 

'RadAjaxManager1').ajaxRequest();

 

sender.deleteFileInputAt(0);

 

}



 

 

<telerik:radasyncupload runat="server" ID="AsyncUpload1" MaxFileInputsCount="1"

 

 

 

 

OnClientFileUploaded="fileUploaded" TargetPhysicalFolder="~/Image/Upload"

 

 

 

Width="90px" OverwriteExistingFiles="True" >

 

 

 

<Localization Select="Choose Avatar" />

 

 

 

</telerik:radasyncupload>

 





 

 

Try

 

 

 

' file.Add(e.File)

 

 

 

Dim fileStream As IO.Stream = e.File.InputStream

 

 

 

Dim imageData As Byte() = New Byte(fileStream.Length - 1) {}

 

fileStream.Read(imageData, 0,

 

CInt(fileStream.Length))

 

Thumbnail1.DataValue = imageData

fileStream.Close()

 

 

Catch ex As Exception

 

 

 

End Try

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Jul 2010, 02:54 PM
Hi aliguldur,

Could you please check this forum thread and let us know whether it helps?

Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
AsyncUpload
Asked by
aliguldur
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or