Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 468 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Any type file upload in Maf ??

Hello everyone
i am using jdeveloper 12.2.1.3.0 and oracle maf 2.5
i need help to upload any type of document and images from mobile and save to database using restfull services ?
is there any component in maf for uploading a file ?
kindly reply
thanks
Answers
-
You can convert file to base64 encoded string and then send it over REST. If required on server side, you can again decode it or you can save it as base64 only (Your choice).
I have done it in past Technology Blog: MAF: Take picture and upload
Thanks
Sanjeev
-
thanks for reply
i need to upload all types files not just images
how can i upload files other then images ??
-
You can upload images using build in camera plugin. For all other documents you have to use a Cordova plugin:
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file-transfer/
Thanks,
Venkata
-
thanks for reply
i already tried cordova plugin but i got the following error
Plugin doesn't support this project's cordova-android version. cordova-android: 6.2.3, failed version requirement: >=6.3.0
could you please tell me how i can solve this issue ?
-
kindly reply
-
Looks like the latest version of the plugin needs a never version of Cordova Android. You can enter a bug against MAF to upgrade the Cordova Version for Android.
In the meantime try the older versions of the plugin:
https://github.com/apache/cordova-plugin-file-transfer/tree/1.7.x
or
https://github.com/apache/cordova-plugin-file-transfer/tree/1.6.x
or
https://github.com/apache/cordova-plugin-file-transfer/tree/1.5.x
-
thanks for reply
is there any other way to upload any type file in maf using java script or simple java in case plugins are not available ??
and kindly guide me how and where i can enter a bug report against maf ?
thanks
-
kindly someone reply ?
-
You should be really using the MAF camera plugin to transfer file from your media library or album. Cordova file transfer is a more generic version.
To enter a bug against MAF for Cordova Android upgrade use:
https://bug.oraclecorp.com/pls/bug/webbug_create.create_issue_top
status 11
Product Id: 11055
Component: RT
Sub-Component: RT_CONT_AND
-
Hi
Did you find the way to upload all types of files in Oracle MAF.
I have a same requirement to upload all types of files using Oracle MAF.
Please let me know if you find the solution, it will be very helpful for me.
Thanks in Advance
Syed