Question : Securing Uploading via Webservice

Hi,

I'm looking to secure a routine that uploads a file to a server using a webservice, without using certificate. Is there an easy to accomplish this I'm overlooking?

Kind Regards,

MrFawlty
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button.Click
		If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
			System.Windows.Forms.Application.DoEvents()
			Button.Enabled = False

			Dim CurrentOffSet As Long = 0
			Dim ChunkSize = CInt(txtSize.Text) * 1024
			Dim objFileInfo As New IO.FileInfo(OpenFileDialog1.FileName)
			Dim lngFileLength = objFileInfo.Length
			Dim strFileName = objFileInfo.Name

			Dim StartTime = Now

			Using objStreamReader = New IO.StreamReader(OpenFileDialog1.FileName)
				Using objBinaryReader = New IO.BinaryReader(objStreamReader.BaseStream)
                    Dim lngOffSet = 0L
                    While lngOffSet < lngFileLength
                        If lngOffSet + ChunkSize > lngFileLength Then
                            ChunkSize = CInt(lngFileLength - lngOffSet)
                        End If
                        Dim Buffer = objBinaryReader.ReadBytes(ChunkSize)
                        objService.UploadFile("UploadedFiles\" & strFileName, Buffer, lngOffSet)
                        lngOffSet += ChunkSize
                        End While
                    objBinaryReader.Close()
                    objStreamReader.Close()
                End Using
            End Using

            Button.Enabled = True
            End If
    End Sub

Answer : Securing Uploading via Webservice

I'd recommend you to test this blog post:
Animated and transparent GIF’s for iPhone made easy!
http://blog.stijnspijker.nl/2009/07/animated-and-transparent-gifs-for-iphone-made-easy/
I've not tested you. It will be great if you will do it and say here if it works or not.

Check this link - you will find answers on many questions including this one.
iPhone SDK Examples
http://www.iphoneexamples.com/
Random Solutions  
 
programming4us programming4us