Question Comments
Added By:
Roger Gardner at:
8/2/2012 4:36:37 AM -How to change FileStoreObject to work With Application server?
-How many files you can store in one folder and the system is not to slow?
Can this sample be upgraded with Application server and multiple folders in File Data Store folder?
Added By:
Sander Mclean at:
8/22/2012 12:31:10 AM Thank you for your example, but could you upgrade this to VB.NET?
Added By:
Martin Kraeuchi at:
10/12/2012 2:00:24 AM I tried to run this example but it crashes.
It occurs a fatal error when I try to append a file after creating a new "Standard File Data Demo" Item. The error occurs at the moment the file select box opens. I didn't found a way to debug it.
Do you have a glue what it could be?
My configuration:
Win7 64BIT, VS2010, v2012 vol 1.7, SQL Server Express 2008 R2
Thanks, Martin
Added By:
Dennis (DevExpress Support) at:
11/29/2012 9:56:43 AM @Roger: I have not yet tested this module with the application server. It is a good idea, though. Thank you for your input, I have added it to my TODO list.
@Sander: It is quite complex a module to rewrite it in VB.NET, as well as maintain two versions later. Even though it is not in my immediate plans, you can either include the C# module project into your VB.NET solution (Visual Studio allows this) or rather use free or paid conversion tools.
@Martin: Thank you for your comment. Hm, it performs perfectly well for me. I also ran functional tests that passed locally. You are probably not using the latest version in this example. It would be great if you could create a separate ticket in the Support Center and attach the eXpressAppFramework.log file with the error details. Thank you in advance!
PS.
Sorry for the late reply, guys. In the future, it is better to submit a ticket directly via the http://www.devexpress.com/Support/Center/Question/Create link, if you experienced any difficulties with our tools.
Added By:
ABRAMO ABRAMO at:
11/21/2013 11:44:40 AM Hi,
I'm working with Images in XAF application storing user image file to file system. So I'm using FileSystemStoreObject and It work fine for me. However, I've some problem!
one - I'd like split and save user images in FileData\<mykey1> folder where mykey1 depends by Business Objects instance1,
user images in FileData\<mykey2> folder where mykey2 depends by Business Objects instance2 and so on.
two - I'd like show stored images like Asp.net Images Slides Control or a link item in grid view to open images.
Do you have any suggestion or example?
Best regards,
Gaetano
Added By:
Ricardo Granja at:
1/27/2014 4:36:39 AM Do vou have an exemple of this as a domain componente?
Regards,
Ricardo
Added By:
xaero xy at:
6/2/2014 9:47:03 PM Did the "StandardFileDataDemo" store file attachments in database?
Added By:
Dennis (DevExpress Support) at:
6/3/2014 2:24:48 AM @xaero: The StandardFileDataDemo class uses the FileData class that stores files in the database and which is a part of the standard delivery.
In turn, the FileSystemStoreObjectDemo class stores files in the file system with the help of custom IFileData implementations described in this example.
Added By:
Steve Perks @ NSS at:
9/19/2014 4:11:17 AM Hi Dennis, thank you for the code - it works great in my web application (I'm only using the FileSystemStoreObject). I've made a mod to cover the case where the user has previously saved a business object and subsequently reloads it to edit the FileSystemStoreObject property, namely to pick a different file. In this case _tempFileName is not correctly populated and the old file is not deleted when the file is changed and the business object saved.
My solution was to add the following code to FileSystemStoreObject.cs
protected override void OnLoaded()
{
base.OnLoaded();
_tempFileName = this.RealFileName;
}
Hope this helps others and perhaps you could update your code if you also feel this is a good solution.
Added By:
Dennis (DevExpress Support) at:
9/19/2014 5:21:49 AM Thanks for sharing, Steve. Would you please either record a video showing how to replicate this behavior with the original example or create a functional EasyTest script covering this scenario? This will help me better understand the situation and make changes, if necessary. Thanks in advance!
Added By:
Steve Perks @ NSS at:
9/19/2014 5:47:52 AM Dennis, how shall I send the video? No attachments in this thread.
Added By:
Steve Perks @ NSS at:
9/19/2014 6:09:35 AM It's ok about sending the video, I've decided to host it for a short while here: http://host21.co.uk/e965/
Added By:
Dennis (DevExpress Support) at:
9/19/2014 6:13:09 AM Thanks for your video, Steve. I will take this scenario into account for future updates.Added By:
Genesis Supsup 1 at:
12/30/2015 2:07:35 AM Does this already work using Application Server? Given the correct credentials, will this concept work with Dropbox (in replacement to File System)?
Added By:
Alexey (DevExpress Support) at:
12/30/2015 9:27:28 PM Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T329782: E965 with dropbox. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Added By:
Joseph Kellerer 2 at:
2/25/2016 12:07:31 AM Thank you for providing this code!
It works great.
I have enhanced the
FileSystemStoreObject to have a Content property like in the BaseImpl.FileData class:
[C#]
[NonPersistent]publicbyte[]Content{get{returnFile.ReadAllBytes(this.RealFileName);}set{File.WriteAllBytes(this.RealFileName,value);}}
Added By:
Dennis (DevExpress Support) at:
2/25/2016 12:33:02 AM @Joseph: You're always welcome!Added By:
Joseph Kellerer 2 at:
2/25/2016 1:53:54 AM My code has an error. You have to add line
[C#]
this.Size=value.Length;
in the setter.