cancel
Showing results for 
Search instead for 
Did you mean: 

How to save ulpoded image in folder (In Project Directory) in SAP Cloud

0 Kudos

Hi

I have a requirement of storing uploaded image in same project directory. There are many solution for storing image in database a blob. But I want Image as a file in same project.

I am able to get solution using node.js but don't know how to use in SAP Hana Web based development workbench -editor.

For alternative I am trying with XSJS. But I am not able to find any solution.

Is any possible solution please share.

Thanks in advance !!!

pfefferf
Active Contributor
0 Kudos

What do you mean with "in same directory"? Same directory than the design time artifacts of your application? If yes, than this approach cannot be really recommended, because you mix "business data" with the technical design time artifacts of your app. There are dedicated soluations (like e.g. a document store) to store such things.

0 Kudos

I know this approach is not recommended. But I am not aware of any other storage that we can use in sap hana development workbench. Any other solution possible for image storage and retrieving is really appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

Hi Avinash,

You shouldn't save any files on the filesystem that was created to your application runtime. That filesystem is very limited and will not allow you to store large quantities of files. XSJS will not solve your problem either. It will only bring additional efforts to store the files onto the database as blobs - which I find a waste of development effort. Other databases are specialized on doing this job, like mongoDB - but that's available only on SCP Cloud Foundry environment.

To store files on the cloud you will could use a CMIS repository that you can create under the Cloud Document Service. Since the repository access is based on CMIS access protocol, you can use the openCMIS Java libraries to build your application and safely store and retrieve files from/to it.

Regards,
Ivan

0 Kudos

Thank you Ivan for your response.

I have tried Cloud Document Service for above approach. For this I have followed below link.

https://help.sap.com/viewer/b0cc1109d03c4dc299c215871eed8c42/Cloud/en-US/ee63e43b719e4e5e94ad3fdbe84...

I have successfully created java application but there is problem in creating proxy bridge. For which I am not able to get output in form of JSON.

Can you please share if you have any other documents or blog which will help me to resolve this issue.

Thanks in advance!

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Avinash,

Could you please post another question about it here as the topic has changed.

Please add more details about the issue you are having with the json results.

Regards,
Ivan

Answers (0)