[Building Sakai] How to get attachment content? (Assignment tool)

le tan vu imleeu at gmail.com
Tue May 18 03:34:03 PDT 2010


Hi David,
That is exactly what I want. Thank you very much.
I'm on half of way but it gives some optimist results.
Thanks again.
Best regards

>Date: Mon, 17 May 2010 10:11:24 +0200
>From: David Horwitz <david.horwitz at uct.ac.za>
>Subject: Re: [Building Sakai] How to get attachment content?
>       (Assignment     tool)
>To: sakai-dev at collab.sakaiproject.org
>Message-ID: <4BF0FA2C.1050009 at uct.ac.za>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hi,
>
>You will need to retrieve the actual content object (see the
>ContentHostingService).
>
>I suspect you will need to do something like:
>
>- retrieve the contentResource
>- write the content to a tmp file
>- pass that to javac
>- clean up the tmp file
>
>Hope that helps
>
>Regards
>
>David
>
>On 05/17/2010 08:36 AM, le tan vu wrote:
> Hi guys.
> I want to ask the simplest way to get attachment content. The scenario is:
> I submit the attachment in my assignment submission. After that, the tool
> will get content of my attachment to test with compiler. (only 1
attachment)
> I use the following to try:
> Process p = Runtime.getRuntime().exec("
javac
> "+sAttachmentReference.getEntity().getReference());
> But it display error file not found.
> Please instruct me.
> Thank you!
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
"unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100517/f0d40e82/attachment-0001.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100518/989eb72a/attachment.html 


More information about the sakai-dev mailing list