I am trying to take a snapshot from a Map control as a WritableBitmap, convert it to an array of bytes and store it in a local database. It works fine (I can convert the byte array back to an image) until I send the changes to the database. At this point, it throws an exception, "Byte array truncation up to 8000 in length." I did not find any documentation about limiting a byte array. Does anyone know how to increase the limit of 8000? My byte array is a member of my model:
private byte[] _locationImage; [Column] public byte[] LocationImage { get { return _locationImage; } set { if (_locationImage != value) { NotifyPropertyChanging("LocationImage"); _locationImage = value; NotifyPropertyChanged("LocationImage"); } } }
database windows-phone-7 sql-server-ce linq-to-sql
Dmitry T
source share