cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Dickson" <>
Subject Cocoon Linux Parameter Issues? (Was Corrupt .WAV on Linux)
Date Wed, 12 Jan 2005 20:53:55 GMT
Are there any differences between POSTing parameters from/to Windows and
Linux in Cocoon?  The param comes in as a String is there a different
default character set conversion going on?  The machine POSTing the .wav
file is running Windows.  When it POSTs to a Linux box are there some

    I have a Cocoon application running just fine on Windows.  It gets a
.WAV file POSTed to a custom Action and I email it off as a binary email
attachment (See below.)  All is fine.  I store the parameter (.wav file) as
a BLOB in MySQL by doing a param.getBytes().  When I move the code up to my
Linux box server, ANT everything and run it, I get nasty garbled .WAV files
that play ok but sound terrible.

Windows Environment:
    Window 2000
    Jdk 1.4.2_06
    Tomcat 4.1
    Cocoon (Front end)
    Hibernate (Back end)
    SMTP Sendmail on Linux Box  (I connect to it.)
    MySQL on Linux Box  (I connect to it.)

Linux Environment:
    RedHat 9
    Jdk 1.4.2_06
    Tomcat 4.1
    Cocoon (Front end)
    Hibernate (Back end)
    SMTP Sendmail on Linux Box  (I connect to it locally)
    MySQL on Linux Box  (I connect to it locally)

Email Code:

Address replyToList[] = { new InternetAddress(replyTo) };
Message newMessage = new MimeMessage(session);
newMessage.setRecipients(Message.RecipientType.TO, toList);
newMessage.setFrom(new InternetAddress(from,from));
newMessage.setSentDate(new Date());
MimeBodyPart messageTextPart = new MimeBodyPart();
MimeBodyPart mimeAttachmentPart = new MimeBodyPart();
DataSource source = new ByteArrayDataSource(attachmentName,
attachmentMIMEType, attachment);
DataHandler dataHandler = new DataHandler(source);
Multipart multipart = new MimeMultipart();
Transport transport = session.getTransport("smtp");
transport.connect(host, user, password);
transport.sendMessage(newMessage, toList);

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message