[Helma-user] downloading binaries with helma.Http

Robert Gaggl robert at helma.org
Wed Oct 18 17:52:05 CEST 2006


hi stefan,

Stefan Rinner wrote:
> Hi
> 
> I need to download some files and store them as byte-array in my DB  
> but helma.Http.getUrl returns the downloaded file as a String and  
> converting this again to a byte[] leads to fucked up binaries on  
> Windows - is there any method/option in helma.Http to download a file  
> and retrieve the untouched byte[]?
> 
> - stefan

currently not. instead you can use helma's global method getURL() 
(http://helma.org/stories/47693/) as alternative (call getContent() of 
the resulting helma.util.MimePart instance).

hth
robert


More information about the Helma-user mailing list