I am having trouble saving data from my iPad app to SQL server. I think it mostly has to do with data types. Starting from the database I have my Image field as SQL Server data type: image. I looked for an equivalent data type in .NET and I found from this linkk: <http://msdn.microsoft.com/en-us/library/cc716729.aspx> that the best choice is a byte array: Byte[]

In the entity/class I am using in .NET I have the following: public class MyClass { public Byte[] Image { get; set; } } and the parameter I am using to to pass in this data looks like this: 

```
SqlParameter param_image = cmd.Parameters.Add("IMAGE", SqlDbType.Image, item.Image.Length);
param_image.Value = System.Convert.FromBase64String(item.Image);
param_image.Direction = ParameterDirection.Input;

```

However, I am getting an error from the parameter about trying to convert from a string to a byte array. Has anyone done this?