Hi Venkatesh,
If you simply need to load a file from a client machine and can put
software on the client machine, then the XCC library is your best bet.
It lets you stream a file across the net into MarkLogic. It is to
MarkLogic what JDBC is for a relational database. There are Java and
.NET versions available at developer.marklogic.com.
If you're wanting to handle a web browser file upload (RFC 1867) then
you'll need something on the server that understands the special file
format with which a browser uploads the file. If you have a Java front
end (aka JBoss), there are lots of Java libraries that can do this
(Apache has one, and I wrote one myself at http://servlets.com/cos).
Tthe Java layer can catch the file(s) and use XCC to insert them into
MarkLogic (or you could just save them on the filesystem and do an
xdmp:load() for a dirt simple approach).
Or if your server is pure XQuery you could write an RFC 1867 parser in
XQuery or maybe someone on the list has already written one in XQuery
and would be willing to share.
If you have another kind of situation, let us know more.
-jh-
[EMAIL PROTECTED] wrote:
hi all,
we run our web server(JBOSS) and Marklogic server in two different machines.
i have a requirement where im supposed to upload a file (non-xml) into
marklogic from client machine(user).
xdmp:load("sourcepath","targetpath");
i cant use the above function since the sourcepath doesnt exist........
plz give some inputs regarding this.
thanks in advance.
Regards
Venkatesh M S
mob-+91 9980096470
When you decide to stand still in life.
You mark the beginning of your end.
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
www.wipro.com
------------------------------------------------------------------------
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general