locked
Can we post image, voice or file using SignalR RRS feed

  • Question

  • User-1461245458 posted

    Hi friends,

    I want to know that can we post image, file or voice using SingalR.

    Thanks
    Vinod Kumar

    Wednesday, May 3, 2017 9:55 AM

All replies

  • User-271186128 posted

    Hi vinodkus,

    vinodkus

    I want to know that can we post image, file or voice using SingalR.

    As far as I know, SignalR is used to communicate between client and server which based on websocket(In the lower version of the browser is ajax long polling), that is, the transmission of data, and you said that the transmission of the document is essentially the meaning of the transmission of data. But there has a very serious problem, because the security on the consideration, the browser couldn't directly access the local file, so SignalR couldn't be used to directly transfer the file, it can't directly read the local file. of course, if the image is already in the browser and used Base64 encoding to display, you can directly read the contents of the image, it can be transmitted.

    If you want to upload the file function it is recommended that you could use jquery.fileupload or plupload js plugin.

    jquery upload js plugin: http://plugins.jquery.com/blueimp-file-upload/
    plupload js plugin: http://www.plupload.com/

    If you have any other questions, please feel free to contact me any time.

    Best regards,
    Dillion

    Friday, May 5, 2017 2:36 AM