vs 2003 how to declare an image variable?

javierkan

New member
Joined
Sep 4, 2006
Messages
1
Programming Experience
Beginner
<WebMethod()> Public Function uploadpic(ByVal Picture As ???, ByVal FileName As String, ByVal KFileName As Integer)

The picture variable i wanted it to be image , how do it do that?
 
That really depends what your function does. If you're going to upload a file then you'll have to convert it to a Byte array, but presumably that will be done within your method. Pass the parameter as an Image and then use its Save method to save its data to a Stream, from which you can then get the data as Bytes.
 
Back
Top