0

Hello sir,
how to change this coding to vb.net coding?

Stream photoStream = PhotoUpload.PostedFile.InputStream;
    int photoLength = PhotoUpload.PostedFile.ContentLength;
    string photoMime = PhotoUpload.PostedFile.ContentType;
    string photoName = Path.GetFileName(PhotoUpload.PostedFile.FileName);
    byte[] photoData = new byte[photoLength];
    photoStream.Read(photoData, 0, photoLength);
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by bharanidharanit
0

Use this link - http://www.developerfusion.com/tools/convert/csharp-to-vb/

Dim photoStream As Stream = PhotoUpload.PostedFile.InputStream
Dim photoLength As Integer = PhotoUpload.PostedFile.ContentLength
Dim photoMime As String = PhotoUpload.PostedFile.ContentType
Dim photoName As String = Path.GetFileName(PhotoUpload.PostedFile.FileName)
Dim photoData As Byte() = New Byte(photoLength - 1) {}
photoStream.Read(photoData, 0, photoLength)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.