FileDescriptor field contents on middleware

Hi,

is it possible to retrieve the contents of a file stored in the DB? I’m asking this, because FileDataProvider is a GUI class…

Thanks
Gabor

Hi Gabor,

Sure, inject FileStorageAPI and use its methods. See https://doc.cuba-platform.com/manual-6.3/file_storage.html

1 Like

Cheers Konstatntin, I’ll try it today!

Gabor

So this works perfectly, Thanks again!