Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
For various reasons I have to build an Audium App but use VXML bit for the record. The raw VXML that does the records works fine (using CVP v3.1/ or v4). I submit VRecord and another parameter.
So some advice if possible.
What do you guys use under the bonnet to do the file extraction and parameter extraction jakarta commons, oreilly etc?
I'm using Jakarta commons FileUpload and I can cycle through all the fields in my servlet/jsp and successfully get the recording stream and read each field, but strangely ordinary field parameters contain no value and this is bog standard item passing on multi-enc type.
I've even tried passing the recording first and last in the namelist.
So i'm beginning to think there's a problem with Jakarta FileUpload (as another work colleague has seen this problem too)
What would you recommend? for extracting the parameter data, and file stream data?
I know this isn't entirely an audium question but would appreciate if you can share some insight so i can focus my attention on something that works.
Cheers
Karl
Subject: RE: Recording Post Replied by: Vance Vagell on 18-09-2007 05:20:46 PM Hi Karl,
You might find our EnhancedRecord sample element helpful. We include the full source code for it, and it performs the types of tasks you're discussing.
Regards, Vance
Subject: RE: Recording Post Replied by: null on 18-09-2007 06:56:13 PM Hi,
I have already been through all this in detail and there's an interface so it's standard Audium code but down another level there is clearly some library being used (and most are freeware these days)
Back to the original question, what worked best to get extract posted web parameters and file stream recordings? as File Upload seems prone to problems. i.e. even with a simple loop to read file and non file components. As states, ordinary parameters can be listed but have no values but
I don't really want to spend another 2-3 days on this so any preferred library recommendations would help!
Subject: RE: Recording Post Replied by: Vance Vagell on 18-09-2007 07:48:24 PM Hi Karl,
The recording itself is passed to your custom element as a request parameter (String), in the HashTable sent to addXmlBody(). The EnhancedRecord element doesn't use any 3rd party libraries to process this file. See line 255 for where the value is retrieved from the parameters, and line 286 for where it is saved to disk (which calls saveToFile()).
Does that help answer your remaining questions?
Regards, Vance
Subject: RE: Recording Post Replied by: null on 19-09-2007 06:55:52 AM I've just done a raw dump of the data and it's showing there so there is a way to extract this.
Prior to hash table, there will be some multi-part parsing to put these items in this hash table (Seen it before), it's this process that usually requires a 3rd party or very custom java, and from what i see on all the java forums everyone uses
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: