Downloading documents in the /files/ file system

Hello, good morning, we are preparing a POC, our application is Oracle Forms, we manage to start said application, and download files in /files/ but when we want to recover any of the files we do not know how we can make the request. They can help us with this. thank you very much
7 Replies
apignotti
apignotti3w ago
Hi, this case should be covered by using the cjFileBlob API. See here for more info: https://cheerpj.com/docs/guides/File-System-support#reading-files-with-javascript
Leaning Technologies Developer Hub
Files and filesystems - CheerpJ Documentation
Virtual filesystems and how to use them
ivan
ivanOP3w ago
Thank you for your response, we already use the API but I think that since it is not in the same browser tab it does not work, is that correct? How can we download the file from a different tab than where the jar program runs? Thanks again for your help
apignotti
apignotti3w ago
The call to cjFileBlob needs to be made from the same tab that is running CheerpJ. Keep in mind that you can call JavaScript code directly from Java code if needed. After you create a blob URL that can be opened in a different tab if required. This is a common use case and we can support you in completing this work. @Panini please provide some further guidance. @ivan I might recommend getting in touch with Elisabeth directly via email ([email protected])
Panini
Panini3w ago
I think @ivan already emailed us last week, but I was not able to respond yet since I was out of office. But I am able to provide more help now if needed.
ivan
ivanOP3w ago
Thank you very much again for the quick response, we are considering changing the way we download the files, we are going to think a little more carefully about the process, we will discuss any questions, thank you again. Good morning again, we have already solved the issue of the files, otherwise, now we are going with something more difficult, sorry for my Indian English, I will try to explain what we want. We have the jars (frmwall.jar ect..) of Oracle Forms, from chrome with cheerpj extension calling the url xxx.net/forms/java/XXX.jnlp it works ok, now what we are looking for is to embed it in an html so that it works In any browser from table, mobile, etc., we have created an html with the API but for some unknown reason it does not work, do you have experience with this?
apignotti
apignotti3w ago
Yes, it's a very common situation. It's always possible to convert a jnlp to a set of CheerpJ API call.
ivan
ivanOP3w ago
Oh yes, sorry, we already have everything for a complete POC. thank you very much again
Want results from more Discord servers?
Add your server