on 04-27-2018 7:33 AM
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 !!!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Ivan for your response.
I have tried Cloud Document Service for above approach. For this I have followed below link.
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!
User | Count |
---|---|
77 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.