[Corona] PUTs of binary data
Scott Conroy
conroys at avalonconsult.com
Wed Dec 7 11:48:36 PST 2011
Yep, same situation with whatever extension. I did a docx and the
triggered code ran, creating my xhtml file...but it was empty of
content.
On Wed, Dec 7, 2011 at 2:24 PM, Scott Conroy <conroys at avalonconsult.com> wrote:
> Well, I'm actually creating a new file as part of my
> xdmp:document-filter. xxx.pdf ends up as xxx.xhtml. I'm not married
> to that solution at all, since I don't really need the binary file in
> MarkLogic at this point. I'm just looking to make the binary files
> searchable. After the document-filter, I need to do a bit more
> metadata enhancement. I can try with the original pdf or docx
> extension and will report back.
>
> On Wed, Dec 7, 2011 at 2:11 PM, Geert Josten <geert.josten at dayon.nl> wrote:
>> Hi Scott,
>>
>> The url you describe contains a uri request param ending on .xml. Is that
>> intentional?
>>
>> Kind regards,
>> Geert
>>
>> -----Oorspronkelijk bericht-----
>> Van: corona-bounces at developer.marklogic.com
>> [mailto:corona-bounces at developer.marklogic.com] Namens Scott Conroy
>> Verzonden: woensdag 7 december 2011 19:28
>> Aan: Corona Email List; sissi.malek.ctr
>> Onderwerp: [Corona] PUTs of binary data
>>
>> I'm able to insert documents using Corona:
>>
>> curl --upload-file install.pdf
>> "http://admin:admin@localhost:9004/store?uri=/foo/bar.xml&contentType=bina
>> ry&contentType=binary"
>>
>> The binary file makes it into MarkLogic fine.
>>
>> However, I'm attempting to convert the document on load using a
>> trigger and xdmp:document-filter. At this point, the conversion
>> happens but I end up with a content type of "application/octet-stream"
>> instead of PDF and the body of the converted file is empty
>> (<body><p></p></body>).
>>
>> By the way, this also happens if I copy a file into MarkLogic via
>> WebDAV. The triggered conversion works fine if I just load a PDF via
>> Query Console. Any suggestions on this?
>>
>> At a later point, I'll be doing more than just converting to xhtml, so
>> I need to keep this pattern of triggering when binary content is added
>> via Corona. Unless you can suggest an alternate/better way?
>> _______________________________________________
>> Corona mailing list
>> Corona at developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/corona
More information about the Corona
mailing list