I am trying save the recorded voice locally in my file system using flex and as3.
I am successful in recording voice and playback again. I am using web application prospective in Flex.
Here I noticed that if I used windowed application, I am successfully saving voice record in my system(using adobe air file system).
Pleas let me know the process of saving recorded file.
You can save VoiceRecord in ByteArray on Flex Side, and send this ByteArray to Server and save there in File or Database
FileReference.save(), but it has to be converted to ByteArray
There is also a open source alchemy c++ plugin someone built for flash that can encode it to an mp3 on the client. Would probably be of great use to you: https://github.com/kikko/Shine-MP3-Encoder-on-AS3-Alchemy
Related
I'm developing a Xamarin.Forms application for Android and iOS that needs to take photos and upload its to a Server. Then, to take the photos on the client side, I'm using Xam.Plugin.Media.
But, as this plugin saves the photos in Xamarin.Forms.Image format and I need them in the System.Drawing.Image format on the Server side, first I tried to save the photo taken by Xam.Plugin.Media in a Byte array, upload it to the server and then save the Bytes array in System.Drawing.Image format, but do not work.
After, I searched for several days in the Internet how to convert the formats and I didn't find anything useful, either converting on the mobile side using Xamarin or on the Server side using C#.
Can anyone help me in this challenge?
Thanks in advance and sorry for my poor English.
Marcelo Camarate
First of all I would use MediaPicker from Xamarin Essentials rather than the outdated media plugin. Second, the FileResult you get back provides access to a Stream which you can copy to a MemoryStream ahich you can copy to a byte array with MemoryStream.ToArray() which gives you your byte[]. You can see an example on the page I link to of how to get the stream from the photo and the various docs for the other methods to find out what you need.
You can then upload the bytes however you want based on your server API.
I have a project in J2ME, writing in net beans 6.9.1
My project is about opening a mp3 file from with a string format file name that generates with a function (not browsing) and plays it.
I have created this program and it works in simulator.
My problem is, how to send all these 300 files to mobile device?
It should be simple to send between users with Bluetooth in future.
I want to know is there any way to package all files in one file and extract them when installing in mobile device?
Or what is the correct way to to that?
Thanks a lot.
Just copy the files JAR and JAD from "project_dir/dist" into your mobile then install it.
Packaging all those 300 mp3 files in your app will result in large jar file size. As you know most of the Java ME mobile phones have very less memory allocated for installing Java ME apps. It is better to provide an option to download all those files form server to SD card when a person use the app for first time.
As Sabin said, it is not a good solution to have all your audio files inside your application, assuming you are using Mobile RMS (Record Management System) which is very limited in size and capabilities; it is better to add a code to open them from your SD card or stream them from server.
I downloaded session record by adding /output/recording.zip?download=zip at the end of the recording URL. Record folder has some .flv and .xml files. How can i play this session? Am i use flv editor?
The recording you download using /output/recording.zip?download=zip query is not the video, it contains form FLV but they will not play.
To play the recording make the recording offline, in Adobe Connect 9 there is an option on recording page "Make Flv" under Actions tab.
You will have to play complete recording to download.
Yes, I think you'll need to use an editor for that.
Usually the way to download an Adobe Connect recording is the one described in the official documentation.
You should only use flv files, not xml files
cameraVoip.flv file for microphone, camera video and screenshare.flv for shared screen (from desktop).
You can also get the start time of these files in the indexstream.xml file, if you know how to work with ffmpeg software or other software, you can combine these files.
But if you can not and only audio and video are important to you and not a text conversation, you can use the program I wrote.
It goes without saying that Adobe Connect files may be corrupted for any reason, so make sure they are safe and then work with Adobe files.
https://github.com/HosseinShams00/AdobeConnectDownloader
I want to play a dss audio file in Asp.net. Any suggestions?
In order to play music on the user's machine (as opposed to the Web server), you'll need to use HTML/JavaScript.
To play songs in the ASP.NET, we can use the following tags
<embed src="Name of the audio file or vedio file with virtual path"> </embed>
<bgsound src=src="Name of the audio file or vedio file with virtual path"/>
In a web application, playing audio files is the task of the client. This means, the client needs to be capable of recognizing and playing the served sound files.
If you intend to require clients to handle DSS, follow adatapost's answer.
Otherwise, you need to convert DSS to mp3 on the server. Quick web search resulted in various DSS converters which perform (manual) batch conversion.
If you want to convert on-the-fly, you need to find a library which converts DSS to a more common audio file format.
I checked in the API, that writing a file is only in Flex Air.
Despite of that, is there still a way in Flex to write a file on the server or on the client machine ?
More concretely, it's because I have a String and I will decode it by mx.utils.Base64Decoder
to a doc. And I need to open it by Word directly on the client side, or write it on the server and return the link to the client for downloading.
Thanks
I'm doing something similar - I have built a custom grid in Flex that contains an additional button on it that allows the user to open the data up in Excel. I've done this by writing a function in PHP on the server which my Flex speaks to. This creates the CSV file on the server and the function passes the link back to the client, which in turn offers the user the chance to open the data up in Excel.
I'm using the Zend technologies to accomplish this - I recommend you take a look; they're extremely good. I used to use Flex Data Services and Java do do this but just recently switched to PHP because development time is cut down drastically as a result.
Hope this helps.
Jamie.
AIR applications run on the users' desktops. They allow you to write to the users' desktops. Nothing stops Flex/AIR applications from communicating to the server, write some files there (using a suitable backend technology) and return a link back to the user.