I get "Out of Memory Exception" while sending large data using web services. It works fine for small amount of data. Scenario is like : Here i have entity class called clsMovie. Here user uploads large file more than 250 MB.this file gets converted to bytes of array and assigned to MovieData member of clsMovie class. when object of this class is passed to web service with large amount of data(large bytes of array), I get "Out of Memory Exception".
代码是 :
MovieResponse objM = service.SaveProductMovie(objMovieEnt); // I get "Out of Memory Exception".
[DataContract]
[Serializable]
public class clsMovie
{
[DataMember]
public byte[] MovieData { get; set; }
[DataMember]
public string MovieType { get; set; }
[DataMember]
public int MovieSize { get; set; }
}
I tried to use WSE 3.0 Tool but it is not supported in VS 2008 and also i googled a lot,but all in vain. Anyone have solution?