Hello, i am currently working on a project with an iphone developer in which i need to receive an image to my .net 1.1 web service. Here is the code that locally works fine if i take an image and convert to bytes... but from the iphone it is coming across as an unreadable 1 kb file. Any thought or experience? Is it encoding issue? Developer says he is sending it as utf8?
<WebMethod()> _ Public Function UploadFile(ByVal fileBytes As Byte()) As BooleanTryDim ms As New MemoryStream(fileBytes)Dim fs As New FileStream("c:\attachments\test.jpg", FileMode.Create)ms.WriteTo(fs) ' clean upms.Close()fs.Close()Catch ex as ExceptionEnd TryEnd Function
View Complete Post