做网站实现发送信息功能,梓潼网站建设,太平保险网站,st3网站开发我想在网络服务器上传视频。我得到了我想要以二进制格式传递文件的服务#xff0c;我该怎么做#xff1f;如何将视频文件(.mp4)格式转换为android中的二进制格式#xff1f;我试图通过base64将视频文件转换为二进制格式..#xff1f;public class binaryformat extends Act…我想在网络服务器上传视频。我得到了我想要以二进制格式传递文件的服务我该怎么做如何将视频文件(.mp4)格式转换为android中的二进制格式我试图通过base64将视频文件转换为二进制格式..public class binaryformat extends Activity {private String strAttachmentCoded;Button b1;/** Called when the activity is first created. */Overridepublic void onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);b1(Button)findViewById(R.id.button1);b1.setOnClickListener(new OnClickListener(){Overridepublic void onClick(View v){// TODO Auto-generated method stubFile file new File(/mnt/sdcard/C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 3.1.2/content/sample.mp4);FileInputStream objFileIS null;try{objFileIS new FileInputStream(file);}catch (FileNotFoundException e){// TODO Auto-generated catch blocke.printStackTrace();}ByteArrayOutputStream objByteArrayOS new ByteArrayOutputStream();byte[] byteBufferString new byte[1024];try{for (int readNum; (readNum objFileIS.read(byteBufferString)) ! -1;){objByteArrayOS.write(byteBufferString, 0, readNum);System.out.println(read readNum bytes,);}}catch (IOException e){// TODO Auto-generated catch blocke.printStackTrace();}byte[] byteBinaryData Base64.encode((objByteArrayOS.toByteArray()), Base64.DEFAULT);strAttachmentCoded new String(byteBinaryData);}});}}1您的网站服务是在哪种技术中开发的 –0windows server 2008 –0如何将我的视频文件转换为二进制格式发送请求到服务器来保存文件.. –