Dear All
I am getting a pdf as byte array through my .NET webservices. I want to
convert it to the xml using xdmp:pdf-convert API of Marklogic executing
through Adhoc query.But It is not accepting byte array as input.
please let me know the options to covert this byte array so as to convert
pdf into xml
I am posting my .NET code sample for reference
public string ConvertPdftoXml(byte[] pdfAsStream)
{
try
{
string transformQry = "xdmp:pdf-convert(";
transformQry = transformQry + pdfAsStream + ",
OutputXml.xml)";
Request request = session.NewAdhocQuery(transformQry);
ResultSequence rs = session.SubmitRequest(request);
session.Close();
return rs.AsString();
}
catch (Exception ex)
{
throw ex;
}
}
thanks in advance
Santhosh Rajasekaran
Tata Consultancy Services
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general