Click here to Skip to main content
16,020,877 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I could send a .txt file to a server using jsp now. It is saved on c:/uploads on the local machine.

Can any one help me with the source code / jsp how can I

1) Take the uploaded file in the local machine 'C:/uploads' and convert the file into mp3 using an application (text-mp3 converter) which can be called by command lines.

For example : TextSpeechConverterCL –txt f:\Mfile\plan.txt –save f:\Mfile\plan.mp3

2) Run /execute the application (text to mp3) in a jsp to take this uploaded file in 'C:/uploads' - say like plan.txt to convert and save into mp3

3) How to send a URL / link to download the converted text file in mp3 type and inform client by email.?

Is it possible to write the code for all the above requirements in a one JSP file ?
Posted
Updated 16-Jan-10 12:43pm
v2

1 solution

You can answer all your questions (and get relevant source code) by doing some simple Google searches:

wrote:
1) Take the uploaded file in the local machine 'C:/uploads' and convert the file into mp3 using an application (text-mp3 converter) which can be called by command lines.

text to mp3 converter command line[^]

wrote:
2) Run /execute the application (text to mp3) in a jsp to take this uploaded file in 'C:/uploads' - say like plan.txt to convert and save into mp3

call command line in java[^]

wrote:
3) How to send a URL / link to download the converted text file in mp3 type and inform client by email.?

java send email attachment[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900