We set up a website using different servers for application server and web server. If we want to transfer file from app server to web server, how will CSLA.NET BLL/DAL's implementation be? Is there any example?
What do you mean by transfer a file? We have a couple of places where our business objects (commands usually, but we also have read-only lists of "image infos" which contain image files essentially) - and we just use a byte managed property. Is that what you're referring to?
Thanks. How and where should we increase the size limitation of the file stream if its a large file?
good question - how big we talking?
If it is an image, there is a mechanism to get a "clipping" sort of image of a particular dimension on the server side thus effectively getting a pretty small byte stream for an image (we need a smaller version of an image for a "preview" in the lower right of our edit forms and only get the full image when we need it.
You can obviously benefit from using compression here - either via the wcf portal if you're using that or just hitting the byte with compression/decompression.
Generally though if you're getting a file you're getting a file and I don't really think a big byte as a managed property is going to be that fundamentally different than getting the big file in some other sort of manner (except with certain CSLA configurations you'll just get compression automatically applied to it).
Copyright (c) Marimer LLC