Hi
Here is the code for reading file
Regards
Nouman
Dim fs As New FileStream _
("C:\winnt\Gone Fishing.BMP", FileMode.OpenOrCreate, _
FileAccess.Read)
Dim MyData(fs.Length) As Byte
fs.Read(MyData, 0, fs.Length)
fs.Close()
you can then use MyData to what you want
To fill an image on the server I did this (image is the variable name for the byte array):
Dim memStream As New System.IO.MemoryStream(image)
Dim vehImage As New Bitmap(memStream)
vehImage.Save(Server.MapPath("Images\" & strFileName & ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.