Hi Katya,
When I executed Box_getFileContent service from the Box Plugin it return file content as stream of data in jqXHR.responseText as shown in below screen shot 1.
I added following code into the Box Plugin handle class.
1) Modified the Box_handler.js - FileInfoServiceHelper - successHandler to check if the extension is .doc or .docx then call the fileContentService.execute as shown in ScreenShot 2 to get .docx file content from Box.com using Box Plugin provided services.
2) Modified the Box_handler.js - FileInfoServiceHelper - completeHandler (ScreenShot 3) to call setFileData() to create blob and upload() to upload the blob (.docx file content) to File DB from Upload.js as shown in ScreenShot 4.
3) File uploaded successfully to the File db but .docx extension is missing(ScreenShot 5) though it show correct content type and when I try to download the file from File DB and open in MS Office it says corrupted.
I am struggling to make it work. What I am trying to achieve is Download the file from Box using Box Plugin and upload into File DB. Please advise what I am missing in below implementation.
ScreenShot 1 :-
ScreenShot 2 : -
ScreenShot 3 :-
ScreenShot 4 :-
ScreenShot 5 :-