Pergunta

I am developing an application which can upload Media files (Audio, Video, Image) to the server. I found out a way by using PHP server code we ware able to get the image in server and store it. I like to know what is the better way to upload a image to a server (SOAP or REST or using PHP).

Foi útil?

Solução

Microsoft has an article on how to use DIME (Direct Internet Message Encapsulation)

IBM also has another way of sending soap attachments that seems a little older.

Outras dicas

there are two way to upload the file using soap first is using base64_decode() and base64_encode() method and anothere is using URL that is send by android (SOAP) php server.. code is

   $tmpfile1 = './ABC.wmv'; (file from location)  
   $filename1 = 'video';      
   $handle1 = fopen($tmpfile, "r");(open in read mode)                   
   $contents1 = fread($handle1, filesize($tmpfile1));
   fclose($handle1);                                 
   $profile_video   = base64_encode($contents); (and decode it)
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top