Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts video file upload

 
prasad guna
Ranch Hand
Posts: 46
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need guidance for uploading video file to server side with compressing data using struts...
 
prasad guna
Ranch Hand
Posts: 46
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any one can tell how to configure ffmpeg with struts because i am using ffmpeg for video format conversion
but in struts can't possible to handle those things

i need alternative for this video conversion

thanks for advance...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing to do with Struts, although it might be possible to compress the stream on-the-fly depending on the compression scheme you want to use. How that would be best accomplished would depend on whether you're using Struts 1 or 2, and would require the use of a custom multipart handler.

It'd be easier to handle it after the file is uploaded, which takes it out of the Struts realm.
 
prasad guna
Ranch Hand
Posts: 46
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

thanks newton

i use struts 1.2.9,in video uploading i use (org.apache.struts.upload.FormFile;) class,and i got the file data format in byte[].after its need to convert the .flv format so i use ffmpeg through

how can i pass object data into 'ffmpeg'?
but its through


so what can i use to run this file...

i dont have idea about struts realm so give if that detailed its more help to me...

thanks.....
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a Struts question; running an external program is a straight Java question--try in the appropriate forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic