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 File Storage - CUBA Platform. Developer’s Manual

1 Like

Cheers Konstatntin, I’ll try it today!

Gabor

So this works perfectly, Thanks again!