Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using Wcf Data Service not Wcf Service. My service implemented by EntityFrameworkDataService and using entity framework. I have Book model in my database that hold image property that its type is byte[]. when send a book instance to wcf data service I recive this "RequestEntityTooLarge" error message.
Posted
Comments
Sergey Alexandrovich Kryukov 19-Apr-15 1:57am    
What do you mean by "image" here? Is it a graphical image, a bitmap?
—SA
mohammadghaderian.bp 19-Apr-15 2:28am    
public class Book
{
public byte[] Image {get; set;}
}

1 solution

You can store images in the form of files on the host implementing the service. Those files should have unique file names; and the database can store only the file names. This is a pretty usual approach.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900