如何在多台计算机上的服务器数据库中存储语音记录? [英] How to do store voice record in database in server from more than one computer?

查看:110
本文介绍了如何在多台计算机上的服务器数据库中存储语音记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

但在客户端浪​​费声音保存,我想保存在Server.please提供代码到wav文件可以保存在服务器上。

解决方案

如果你是使用多用户数据库系统(如SQL Server或MySql)而不是单个用户系统(如Access或SqLite)并且不预先分配ID值(除非它们是GUID)它应该全部正常工作 - 多个插入同时是这样的系统设计的。


然后你必须将音频文件传输到服务器。



什么是.wav文件?

好​​吧,最后它是一个字节数组,也称为二进制大对象(BLOB)。



如何存储MySQL中的BLOB?

好​​了,请阅读文档 11.4.3 BLOB和TEXT类型 [ ^ ]



为了将来参考,不要通过删除重要信息来改变你的问题。

只需添加更多有用的信息。

But Wave sound saving on client side ,I want to save on Server.please provide code to wav file can save on server.

解决方案

Provided that you are using a multiuser database system (such as SQL Server, or MySql) rather than a single user system (such as Access, or SqLite) and don't pre-assign ID values (unless they are GUIDs) it should all "just work" - multiple inserts at the same time is what such systems are designed for.


Then you have to transfer the audio file to a server.

What is a .wav file?
Well, in the end it is an array of bytes, also called a Binary Large Object (BLOB).

How to store a BLOB in MySQL?
Well, read the documentation 11.4.3 The BLOB and TEXT Types[^]

And for future reference, don't change your question by removing vital information.
Just add more information that can be useful.


这篇关于如何在多台计算机上的服务器数据库中存储语音记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆