Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Duncan Idaho Newsgroups: comp.lang.java.programmer Subject: Re: Bash script with Image Magick to a Java program Date: Sat, 28 May 2016 08:03:53 +0100 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <87oa7s4f1u.fsf@Equus.decebal.nl> <8760tz50qf.fsf@Equus.decebal.nl> <871t4n4u12.fsf@Equus.decebal.nl> <87eg8n2oa7.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 28 May 2016 07:00:14 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="431058c5ba7b2ef78e507d720779c3d0"; logging-data="6081"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZkJ8XCXLqWJ0tjpKHk/SIKNw+G+Pcw2E=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 In-Reply-To: <87eg8n2oa7.fsf@Equus.decebal.nl> Cancel-Lock: sha1:dItGMBblkIu6tEIF0WUuSBwz83c= Xref: csiph.com comp.lang.java.programmer:34412 On 27/05/16 22:18, Cecil Westerhof wrote: > On Friday 27 May 2016 19:51 CEST, Duncan Idaho wrote: > >> On 27/05/16 12:31, Cecil Westerhof wrote: >>> On Friday 27 May 2016 12:00 CEST, Martin Gregorie wrote: >>> >>>> On Fri, 27 May 2016 11:06:16 +0200, Cecil Westerhof wrote: >>>> where do you want it sent. > That would be nice. If you like I will refactor it and send it back. > And if you like something implemented … Well you will need to do something as the single class method takes an instance of org.apache.commons.fileupload.FileItem; as argument, FileItem exposes a couple of methods to return it's contents as byte[] or an InputStream which is what the code uses. It's a trivial change though. -- Duncan Idaho !(ghola mentat)