how to store images in xml file using vb.net
i want to store a image from picturebox to xml file node using vb.net... how to do that.. i need syntax... sample code
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hirendra SisodiyaPosted May 2, 2011, 6:28 AM
convert image into binary data
thanks
Karthikeyan AnbarasanPosted Apr 8, 2011, 2:17 AM
FroglegPosted Apr 1, 2011, 3:04 PM
Dim img As Image
Dim stream As New IO.MemoryStream()
Dim result As String
img = ' your image
img.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg) ' or whatever format you want to use
result = Convert.ToBase64String(stream.ToArray)