Ha I tough you wanted to change the database used for XWiki.
First thing is to decide where you want to put theses files in XWiki
and to define a conversion rule you can then implements in a script.
You have several solution:
* use groovy inside a XWiki page since that's the easiest way to use
XWiki API to import and store the attachments in your wiki
* if you are not very confident with groovy (or java since groovy is
very close to java) you can also use the REST
(
) interfaces
provided by XWiki to upload the attachments in a whatever
script/program you know better
On Wed, Aug 24, 2011 at 4:04 PM, Guillaume Lerouge <guillaume(a)xwiki.com> wrote:
Hi Françoise,
in order to do this, you would need to export all attachments from you
Oracle DB and store them into a ZIP file for instance. Then you would need
to write a script that reads the contents of the ZIP file, creates a XWiki
document for each of them and attaches the file to the document.
I've seen such scripts in action, but unfortunately I cannot find it on
http://extensions.xwiki.org . If you're not a developer, they might be a bit
tough to create from scratch.
Guillaume
On Wed, Aug 24, 2011 at 3:40 PM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com>wrote;wrote:
Whatever the way you store the attachment they
are supposed to be part
of the exported xar.
On Wed, Aug 24, 2011 at 3:33 PM, Cadin Françoise
<francoise.cadin(a)insee.fr> wrote:
Hello,
My company wants to migrate the content of an Oracle database into XWiki.
This
database contains files (xls, doc, rtf etc...) stored in BLOB which are
linked with text documents. In order to migrate the text documents, I use
the import in Xar format and it's OK, the problem is the migration of the
files. In my Wiki I chose the option to store the attached files outside the
database. I expected to put "metadatas attachment" in the xml files and
simply copy my files in the right directory but it doesn't work. Is it a
wrong idea ? What's the best way to do it ?
Thank you for help.
Françoise Cadin
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users