Hi all,
I am use this code to transfer a file from a webservice to the cliënt:
Code:<WebMethod(EnableSession:=True)> _ Public Function GetSignature() As Byte() Dim binReader As New IO.BinaryReader(IO.File.Open("C:\Bar.emf", IO.FileMode.Open, IO.FileAccess.Read)) binReader.BaseStream.Position = 0 Dim binFile As Byte() = binReader.ReadBytes(Convert.ToInt32(binReader.BaseStream.Length)) binReader.Close() Return binFile End FunctionIs the filename stored somewhere in the byte()? If so, how can I get it? Or do I have to send the filename seperately as String.Code:Dim file As Byte() = proxy.GetSignature() Dim binWriter As New IO.BinaryWriter(New System.IO.FileStream("FILE NAME HERE??", System.IO.FileMode.Create)) binWriter.Write(file) binWriter.Close()
Thnx in advance.


Reply With Quote
